Switching variables

suggest change

To switch the value of two variables you can use tuple unpacking.

x = True 
y = False 
x, y = y, x 
x
# False 
y
# True

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents