Exception Handling | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Exception Handling

Hi guys, here we go again, ;) i'm 100% sure the result of this code is 5.0, however the multi-answer give to me by the system still no good, it says the answer is 5.0 Finished. I run this code in the playground and outside the playground and in all the cases come back to me as the correct answer is 5.0, so, please anyone can tell me what is going on, i have the feeling of losing points in my python tutorial for some bug on the multi-answer page, help. thank you all. try: variable = 10 print(10 / 2) except ZeroDivisionError: print("Error") print("Finished")

5th Jan 2018, 1:24 PM
ruben
ruben - avatar
3 Answers
0
Timon, you are 101% right on that i check it and it is as you say, thank you very much
5th Jan 2018, 5:33 PM
ruben
ruben - avatar
- 1
No problem, you're welcome.
5th Jan 2018, 7:05 PM
Timon Paßlick
- 2
Is it maybe try: variable = 10 print(10/2) except ZeroDivisionError: print("Error") print("Finished") Because with this intendation, the result would be what it should.
5th Jan 2018, 2:30 PM
Timon Paßlick