help me realize what's wrong with this code?
i'm just trying to practice the simple calculator project from python module. and this happens: this is the output console: Options: enter 'add' to add two numbers enter 'subtract' to subtract two numbers enter 'multiply' to multiply two numbers enter 'divide' to divide two numbers enter 'quit' to end the program : enter a number: Traceback (most recent call last): File "..\Playground\", line 21, in <module> num1 = float(input("enter a number: ")) EOFError: EOF when reading a line and this is the code: while True: print("Options: ") print("enter 'add' to add two numbers ") print("enter 'subtract' to subtract two numbers") print("enter 'multiply' to multiply two numbers") print("enter 'divide' to divide two numbers") print("enter 'quit' to end the program") user_input = input(": ") user = user_input if user == "quit": break elif user == 'add': num1 = float(input("enter a number: ")) num1 = float(input("enter another number: ")) result = str(num1 + num2) print("the answer is", result) elif user == "subtract": num1 = float(input("enter a number: ")) num1 = float(input("enter another number: ")) result = str(num1 - num2) print("the answer is", result) elif user == "multiply": num1 = float(input("enter a number: ")) num1 = float(input("enter another number: ")) result = str(num1 * num2) print("the answer is", result) elif user == "divide": num1 = float(input("enter a number: ")) num1 = float(input("enter another number: ")) result = str(num1 / num2) print("the answer is", result) else: print("unknown input")