1/16
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Error
A problem in a program that stops it from completing its task.
Exception
A condition that disrupts the normal execution of the program.
try Block
Tests a block of code for errors.
except Block
Handles the error.
else Block
Executes code when there is no error.
finally Block
Executes code, regardless of the result of the try and except blocks.
raise Keyword
Used to raise an Exception.
Syntax Error
Syntax mistake in the code, such as a missing colon or unmatched parenthesis.
Indentation Error
The code is not properly indented.
Name Error
A local or global name is not found, usually occurs when using an unidentified variable
Value Error
A function receives an argument of the correct type but an inappropriate value.
Index Error
Trying to access an index that is out of range for a list, tuple, or string.
Key Error
Trying to access a dictionary key that does not exist.
Attribute Error
An invalid attribute reference or assignment is made / attempting to call a nonexistent method on an object.
Import Error
An import statement has issues, such as importing a non-existent module or function.
ZeroDivisionError
Trying to divide by zero.
File Not Found Error
A file or directory is requested but cannot be found.