This is a simple python program to swap two variable.

Here

a, b = b, a   # means a = b and b = a

Run

$ python swap.py

Sample Input

a: 15
b: 20

Sample Output

Before Swap: a: 15 b: 20
After Swap: a: 20 b: 15

This is a really simple code. Hope it helps you in any way.

Thanks.