Python Program to swap the two variables using a third variable


var1=int(input("Enter the first number"))
var2=int(input("Enter the second number"))
var3=var1
var1=var2
var2=var3
print("After swapping:",var1,var2)


Comments