Question: What happens if an exception occurs ( like divide by 0 ) in the main function and there is no try / except block for

What happens if an exception occurs (like divide by 0) in the main function and there
is no try/except block for this exception?
A syntax error occurs because all possible exceptions that could arise with this
code must be handled in the program
Nothing happens and code continues in sequence
The program ends abruptly with a traceback error report
What happens if an exception occurs ( like divide

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!