Given (a,b), return tuple with a repeated b times then b repeated a times. Example: (2,3) => (2,2,2,3,3)
Implement this function:
def repeat(t: tuple) -> tuple:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: t.
Input
(2, 3)
Output
(2, 2, 2, 3, 3)