+ 14

Help me to solve this error! i can't understand this error. it was my first code in python.

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

24th Oct 2018, 4:42 AM
Preetha
Preetha - avatar
6 Respostas
+ 7
Now,i understand that. without your help i did not complete the code. Very kind of you anna...:):)
24th Oct 2018, 12:26 PM
Preetha
Preetha - avatar
+ 5
Thank you anna. but still it causing error.
24th Oct 2018, 10:49 AM
Preetha
Preetha - avatar
+ 5
Thank you anna. it was run properly. but the 8th line cause an EOF error.
24th Oct 2018, 11:19 AM
Preetha
Preetha - avatar
+ 3
The second, third and fourth lines in each elif statement are not properly indented. They need to be on the same indentation level as the first line of the statement. Otherwise, they are not part of the elif statement
24th Oct 2018, 5:14 AM
Anna
Anna - avatar
+ 3
That's because of the endless loop. After the first calculation, it expects more input because it is still in the while loop. You can use a 'break' to prevent that. Or just enter 'quit': add 5 6 add 76 9 quit works perfectly 👌
24th Oct 2018, 11:53 AM
Anna
Anna - avatar
+ 2
Now lines 9, 11, 16 etc. need to be indented to be inside of the while loop
24th Oct 2018, 10:57 AM
Anna
Anna - avatar