# Function to add two numbers
def add_numbers(num1, num2):
return num1 + num2
# Main function
def main():
# Input: Get two numbers from the user
try:
number1 = float(input("Enter the first number: "))
number2 = float(input("Enter the second number: "))
# Process: Add the two numbers
result = add_numbers(number1, number2)
# Output: Display the result
print(f"The sum of {number1} and {number2} is: {result}")
except ValueError:
print("Please enter valid numbers.")
# Run the main function
if __name__ == "__main__":
main()