+ 1
Python 3.6.0 is not recognising ZeroDivisonError in exception handling . What should I do ?
except ZeroDivisonError: print("Division By Zero") shows an error that name ' ZeroDivisonError ' is not defined ...
6 odpowiedzi
+ 10
You have a typo there:
the proper exception catch name is
ZeroDivisionError
+ 8
You typed ZeroDivisonError - you are missing an 'i' in the 'Division' part.
+ 4
Yep, typos are nasty ;)
+ 1
Ooh Thanks kuba 😱😱I was missing the spelling
0
can u please explain what should I type ?
0
ZeroDivisionError there is an 'i' after the 's'