Chapter 19 Flashcards

1
Q

exception

A

An error that occurs at runtime.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

raise

A

To create a deliberate exception by using the raise statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly