"""author: @pythonpips"""

a = 'a'
b = 'b'

a, b = b, a

# a = 'b' and b = 'a'
How to Swap Two Variable in Python

Subscribe to our newsletter