Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Because you have multiple if blocks. In the first one, where you check for "/", everything works correctly. In the third, you have a bunch of elifs that don't work, but the else does, which just contains a message about division by zero. Solved by replacing 2 and 3 if with elif.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question