Python In-place swapping of two numbers

Last updated 3 years, 1 month ago | 1259 views 75     5

Tags:- Python Django

 Python | In-place swapping of two numbers

>>> a, b = 10, 20
>>> print(a, b)
10 20

>>> a, b = b, a
>>> print(a, b)
20 10