+ 1

Simple caculator program giving error, please let me know what I am missing?

https://code.sololearn.com/cYjStNkzy9LV/#py

1st Aug 2018, 5:47 PM
Kailash Singh
Kailash Singh - avatar
2 ответов
+ 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
1st Aug 2018, 6:23 PM
JME
+ 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
1st Aug 2018, 6:23 PM
Bebida Roja
Bebida Roja - avatar