+ 1
Simple caculator program giving error, please let me know what I am missing?
2 Answers
+ 1
No error, sololearn requires that all inputs be given at the start so you need to end with quit. Program will work better if run on idle or some local editor
+ 1
It seems that, because sololearn gets all the arguments beforehand, it is not able to deduce the argument after the first input, so you cannot have input inside an if-else if you have input outside it, this is not the default python behaviour. Here is an examples where it shows the same error:
https://code.sololearn.com/cJJInw09Hi5J/?ref=app