I put exactly the same code as was in example for simple calculator.......still having problem.....I have given my code here.......help plz....
print(options) print("enter 'add' to add two numbers") print("enter 'subtract' to subtract two munbers") print("enter'divide' to divide two numbers") print("enter'multiply' to multiply two numbers") print("enter'quit' to end the programm") user_input=input(":") if user_input=="quit": break elif user_input=="add": num 1=float(input("enter a number:")) num 2=float(input("enter another number:")) result=str(num 1 +bnum 2) print("The answer is" + result) elif user_input=="subtract": num 1=float(input("enter a number:")) num 2=float(input("enter another number:")) result=str(num 2 - num 1) print("The answer is" + result) elif user_input=="divide": num 1=float(input("enter a number:")) num 2=float(input("enter another number:")) result=str(num 1/num 2) print("The answer is" + result ) elif user_input=='multiply': num 1=float(input("enter a number:")) num 2=float(input("enter another number:")) result=str(num 1*num 2) print("The answer is" +result) else print ("unknown output")