Write a function swap_halves(items) that takes a tuple of even length and returns a
new tuple in which the first and second halves have been swapped.
Example
swap_halves((1, 2, 3, 4)) -> (3, 4, 1, 2)
Implement this function:
def swap_halves(items: 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: items.
Input
(1, 2, 3, 4)
Output
(3, 4, 1, 2)