How to easily swap the value of two variables in python x, y =10, 20 print(x, y) x, y =y, x print(x, y) Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Like this:Like Loading... Related