+ 1
please can someone tell me what the syntax error is on line18 or any other error? Answer is needed ASAP
7 Réponses
+ 3
I modify your code.this is right.
https://code.sololearn.com/csMQoDNBB4Y8/?ref=app
+ 2
Yes, the indentation needs to be fixed, and also note and consider, that the use of while True: will make the code repeats itself and ask for input over and over again, SoloLearn Code Playground doesn't support interactive code execution, thus while True: loop will trigger EOF when code ask for option again (add/sub/mult/div), you need to inform your code viewers about it (comment in code header) otherwise everyone who tries to run this code will think there's an error : )
0
code block between elifs breaks syntax for if statments
0
it's not the indentation that is wrong. it's a syntax error. if were to be indentation error, it'd have reported it before getting to line 18. Please help run the program and find the syntax error there.
0
Qwertiony i can't comprehend what you meant. can you explain better?
0
Maninder Singh Thanks for correcting that😃. Although i couldn't debug the syntax error apart from the indentation.
0
Jan Markus i tried running it when i corrected the indentation, it's still the same syntax error, that's why i insisted it isn't the indentation.