0
While doing the calculator,my system shows SyntaxError and Ellipsis...what could i be doing wrong
Calculator in python help
8 Respostas
+ 14
This is just a part of the calculator...
Please carry on and complete the whole lesson.. The remaining parts..Getting the numbers , Doing calculation are explained further in the lesson..
After that try creating a. calculator and if you face any difficulties you can ask queries...
+ 13
Yes but if you have tried that by yourself, post it here..
If it has and you are using "Try it yourself" in the course , press back and try again, by mistake you might have edited the code there.. which gives you the error...
+ 12
For better help from the community.. please share your code..
0
it's the code in the first lesson in "a simple Calculator"
0
it's the code in the first lesson in "a simple Calculator"
0
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(": ")
if user_input == "quit":
break
elif user_input == "add":
...
elif user_input == "subtract":
...
elif user_input == "multiply":
...
elif user_input == "divide":
...
else:
print("Unknown input")
@Frost @Deepak Gautam