Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculator Help..?
#3
What is it? It's an error you get, if you try to do something that's impossible (or doesn't make sense, or returns Infinity or something. I don't know, I'm bad at math).

>>> 32 / 0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: division by zero
What can you do about it? try/except, and display a nicer error message than simply crashing.
Reply


Messages In This Thread
Calculator Help..? - by hentera - Apr-20-2017, 04:56 PM
RE: Calculator Help..? - by Kebap - Apr-20-2017, 05:02 PM
RE: Calculator Help..? - by nilamo - Apr-20-2017, 05:09 PM
RE: Calculator Help..? - by Larz60+ - Apr-20-2017, 05:20 PM
RE: Calculator Help..? - by Josh - Apr-20-2017, 06:13 PM
RE: Calculator Help..? - by nilamo - Apr-20-2017, 06:22 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020