+ 14
Help me to solve this error! i can't understand this error. it was my first code in python.
6 Answers
+ 7
Now,i understand that.
without your help i did not complete the code. Very kind of you anna...:):)
+ 5
Thank you anna.
but still it causing error.
+ 5
Thank you anna.
it was run properly.
but the 8th line cause an EOF error.
+ 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
+ 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 đ
+ 2
Now lines 9, 11, 16 etc. need to be indented to be inside of the while loop