x=int(input("Enter x:")) y=int(input("Enter y:")) # Method 1 x,y=y,x print(x,y) # Method 2 t=x x=y y=t print(x,y) # Method 3 x=x+y y=x-y x=x-y print(x,y) # Method 4 x=x^y y=x^y x=x^y print(x,y) # Method 5 x=x*y y=x/y x=x/y print(x,y)