0

While doing the calculator,my system shows SyntaxError and Ellipsis...what could i be doing wrong

Calculator in python help

3rd Jan 2018, 2:09 PM
Charles Uche-Iromaka
Charles Uche-Iromaka - avatar
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...
3rd Jan 2018, 3:07 PM
Frost
Frost - avatar
+ 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...
3rd Jan 2018, 2:28 PM
Frost
Frost - avatar
+ 12
For better help from the community.. please share your code..
3rd Jan 2018, 2:19 PM
Frost
Frost - avatar
0
it's the code in the first lesson in "a simple Calculator"
3rd Jan 2018, 2:26 PM
Charles Uche-Iromaka
Charles Uche-Iromaka - avatar
0
it's the code in the first lesson in "a simple Calculator"
3rd Jan 2018, 2:26 PM
Charles Uche-Iromaka
Charles Uche-Iromaka - avatar
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
3rd Jan 2018, 2:52 PM
Charles Uche-Iromaka
Charles Uche-Iromaka - avatar