def swap_numbers(a, b):
return b, a
# Example usage:
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
num1, num2 = swap_numbers(num1, num2)
print(f"After swapping: First number = {num1}, Second number = {num2}")
To embed this project on your website, copy the following code and paste it into your website's HTML: