def swap(a, b):
    temp = a
    a = b
    b = temp
    return a, b

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

a, b = swap(a, b)
print(a)
print(b)

Embed on website

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