+ 1

please can someone tell me what the syntax error is on line18 or any other error? Answer is needed ASAP

https://code.sololearn.com/c7hNlCIG8fgo/?ref=app

7th Apr 2018, 4:59 PM
Adegoke Opeyemi Adewumi
Adegoke Opeyemi Adewumi - avatar
7 Réponses
+ 3
I modify your code.this is right. https://code.sololearn.com/csMQoDNBB4Y8/?ref=app
8th Apr 2018, 3:49 AM
Maninder $ingh
Maninder $ingh - avatar
+ 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 : )
8th Apr 2018, 6:14 AM
Ipang
0
code block between elifs breaks syntax for if statments
7th Apr 2018, 5:10 PM
Qwertiony
Qwertiony - avatar
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.
7th Apr 2018, 10:46 PM
Adegoke Opeyemi Adewumi
Adegoke Opeyemi Adewumi - avatar
0
Qwertiony i can't comprehend what you meant. can you explain better?
7th Apr 2018, 10:49 PM
Adegoke Opeyemi Adewumi
Adegoke Opeyemi Adewumi - avatar
0
Maninder Singh Thanks for correcting that😃. Although i couldn't debug the syntax error apart from the indentation.
8th Apr 2018, 8:47 AM
Adegoke Opeyemi Adewumi
Adegoke Opeyemi Adewumi - avatar
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.
8th Apr 2018, 8:49 AM
Adegoke Opeyemi Adewumi
Adegoke Opeyemi Adewumi - avatar