Write swap(a, b) that returns the pair in reverse order as a tuple (b, a).
swap(1, 2) → [2, 1]
swap('x', 'y')
→ ['y', 'x']Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.