Chapter 19 Flashcards
1
Q
exception
A
An error that occurs at runtime.
2
Q
handle an exception
A
To prevent an exception from causing our program to crash, by wrapping the block of code in a try … except construct.
3
Q
raise
A
To create a deliberate exception by using the raise statement.