def swap(a,b):
a,b = b,a
print("After swap : ")
print("First number = ",a)
print("Second number = ",b)
a input("\n Enter the first number: ")
b=input("\n Enter the second number: ")
print("Before swap : ")
print("First number = ",a)
print("Second number = ",b)

swap(a,b)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: