0

Pls, I tried the SIMPLE CALCULATOR and had an error

8. user_input=input(":") 9. 10. if user_input=="quit': 11. break 12. elif user_input=="add": 13. ... 14. elif user_input=="subtract": 15. ... It always points me to line 13, saying SyntaxError: invalid syntax. I need help here pls

12th Sep 2016, 9:56 AM
Paul Osakue
Paul Osakue - avatar
2 Antworten
0
What is represented by the "..."? If you actually have "..." in your code, that's a big no-no. You need another thing. If you want it to reiterate, use "continue".
25th Sep 2016, 1:43 AM
1-up Man
1-up Man - avatar
0
Oh. And helpful tip: this app runs a version of Python that is different from your computer's IDLE. So programs that work there might not work here.
25th Sep 2016, 1:45 AM
1-up Man
1-up Man - avatar