Switching variables
suggest changeTo switch the value of two variables you can use tuple unpacking.
x = True
y = False
x, y = y, x
x
# False
y
# True
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents