sum- Function to calculate the sum of two numbers def calculate_sum(a, b): return a + b Ask the user for two numbers num1 = float(input("Enter the first number: ")) num2 = float(input("Enter the second number: ")) Calculate the sum sum_result = calculate_sum(num1, num2) Print the result print(f"The sum of {num1} and {num2} is {sum_result}.")