Python Program to Swap Two Numbers using Tuple

a=int(input("Enter the first number :"))
b=int(input("Enter the second number :"))
print ("a=",a, "b=",b)
(a,b)=(b,a)
print("a=",a, "b=",b)

Output:
Python Program to Swap Two Numbers using Tuple