num1 = float(input("Enter the first number: ")) num2 = float(input("Enter the second number: ")) operation = input("CHoose an operation (+, -, *, /): ") if operation == "+": result = num1 + num2 elif operation == "-": result = num1 - num2 elif operation == "*": result = num1 * num2 elif operation == "/": result = num1 / num2 else: result = "Invalid operation" print(f"Result: {num1} {operation} {num2} = {result}")