+ 4

I don’t get what’s wrong.

Click run then submit and then it displays an error with my code but I don’t get it. Help? Link to code: https://code.sololearn.com/c67xf10uNltM/?ref=app

17th Oct 2019, 7:44 PM
Aaron Woodmore
Aaron Woodmore - avatar
6 Respuestas
+ 8
Line 57 is incomplete. Also, I don't think that your code will work in Sololearn.
17th Oct 2019, 7:48 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 4
the last line is incomplete. and it doesnt let the user to give another input after the operation. complete your last line whatever it might be. then write another input() inside the loop, but outside if-elif-else
17th Oct 2019, 7:51 PM
Taste
Taste - avatar
+ 3
You should finish your last statement,
17th Oct 2019, 7:50 PM
Gami
Gami - avatar
+ 3
There is a lot of redundancy in the code. For each task add, subtract, ... you have the same code that gets the input.
17th Oct 2019, 7:53 PM
Lothar
Lothar - avatar
+ 3
when you use an else statement it means if none of the if conditions are true then execute this code in your case you should have done else: print("Bad Expression") on line 57 also it won't run on Sololearn.. But it will work in another compiler
19th Oct 2019, 1:17 PM
Dace [Super Inactive| Challenge=Maybe]
Dace [Super Inactive| Challenge=Maybe] - avatar