Python Calculator: Syntax error in line 10
Hi guys, I have just finished programming a calculator in python. However, whenever I run the code I get this error File "./Playground/file0.py", line 10 if user_input=("quit"): ^ SyntaxError: invalid syntax Do you guys have any Idea why this is happening? This is my code... while True: print("type 'add' to add two numbers") print("type 'subtract' to subtract two numbers") print ("type 'divide' to divide two numbbers") print ("type 'multiply' to multiply two numbers ") print ("type 'quit' to terminate the process") user_input=input(":") if user_input=("quit"): break elif user_input=("add"): number_1=float(input("enter a number")) number_2=float(input("enter another number")) result=(number_1+number_2) print("The answer is"+result) elif user_input=("subtract"): number_1=float(input("enter a number")) number_2=float(input("enter another number")) result=(number_1-number_2) print("The Answer is"+result) elif user_input=("multiply"): number_1=float(input("enter a number")) number_1=float(input("enter another number")) result=(number_1+number_2) print("The answer is"+result) elif user_input=(divide): number_1=float(input("enter a number")) number_2=float(input("enter another number")) result=(number_1+number_2) print("The answer is"+result) else: print ("unknown input")