# Function to swap two numbers
def swap(a, b):
    a, b = b, a
    return a, b

# Example usage
num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))

num1, num2 = swap(num1, num2)
print(f"After swapping: First number = {num1}, Second number = {num2}")

Embed on website

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