Swap Two Numbers

Easy
#logic #variables

Input: `a`, `b`. Return: List `[b, a]`.

Example

Input: 1, 2
Output: [2, 1]
Need a hint?
  • You can use tuple unpacking: a, b = b, a
Run your code to see output