Program to swap two numbers in Python

 a=input("Enter a value")

b=input("Enter b value")

temp=a

a=b

b=temp

print("After swapping")

print("Value of a = {}".format(a))

print("Value of b = {}".format(b))

Comments

Popular posts from this blog

Data Science Matplotlib Library Data Visualization, ASSIGNMENT - 6, GO_STP_8113