Python Forum
ZeroDivisionError help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ZeroDivisionError help
#2
If an exception was raised in your try block, all remaining code will be ignored and execution jumps to the except block. From what I can see from your code, your output code should be inside your try block. Because when no exception was raised it should run that code. If an exception was raised you can handle that within the except block.
Reply


Messages In This Thread
ZeroDivisionError help - by zimmytheflygirl - Jun-18-2024, 05:57 PM
RE: ZeroDivisionError help - by Jeff_900 - Jun-18-2024, 07:17 PM
RE: ZeroDivisionError help - by zimmytheflygirl - Jun-18-2024, 07:22 PM
RE: ZeroDivisionError help - by Jeff_900 - Jun-18-2024, 07:30 PM
RE: ZeroDivisionError help - by zimmytheflygirl - Jun-18-2024, 07:45 PM
RE: ZeroDivisionError help - by zimmytheflygirl - Jun-18-2024, 07:56 PM
RE: ZeroDivisionError help - by Jeff_900 - Jun-18-2024, 08:00 PM
RE: ZeroDivisionError help - by deanhystad - Jun-19-2024, 12:43 AM
RE: ZeroDivisionError help - by Pedroski55 - Jun-21-2024, 03:14 PM
RE: ZeroDivisionError help - by zimmytheflygirl - Jun-21-2024, 11:58 PM
RE: ZeroDivisionError help - by deanhystad - Jun-22-2024, 03:22 AM
RE: ZeroDivisionError help - by zimmytheflygirl - Jun-24-2024, 01:15 PM

Forum Jump:

User Panel Messages

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