PCEP Errors - Exceptions and debugging

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/5

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:09 PM on 4/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

6 Terms

1
New cards

ZeroDivisionError

Raised by a division in which the divider is zero or indistinguishable from zero (/, //, and %).

2
New cards

ValueError

Raised by the use of values that are inappropriate in the current context, such as int(''), when a function receives an argument of a proper type, but its value is unacceptable.

3
New cards

TypeError

Raised by attempts to apply data of a type that cannot be accepted in the current context, for example, int(None).

4
New cards

AttributeError

Raised when the code tries to activate a method that doesn't exist in a certain item, such as the_list.apend() (note the typo!).

5
New cards

SyntaxError

Raised when the control reaches a line of code that violates Python's grammar, and which has remained undetected until now.

6
New cards

NameError

Raised when the code attempts to make use of a non-existent (not previously defined) item, such as a variable or a function.