1/13
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
try:
except (exc1, exc2):
handling two or more exeptions
ArithmeticError
klasa bazowa dla ZeroDivisionError
w exeption po to żeby 2 razy obsłużyć wyjątek (w i poza funkcją)
gdzie mozna używać samego słówka raise i po co
assert
jesli po tym słowie pojawi sie None lub False to pojawia się AssertionError
KeyboardInterrupt
ten wyjatek wystepuje po wciśnietu cltr+c
MemoryError
a concrete exception raised when an operation cannot be completed due to a lack of free memory
LookupError
an abstract exception including all exceptions caused by errors resulting from invalid references to different collections (lists, dictionaries, tuples, etc.)
IndexError
a concrete exception raised when you try to access a non-existent sequence's element (e.g., a list's element)
OverflowError
a concrete exception raised when an operation produces a number too big to be successfully stored
ImportError
a concrete exception raised when an import operation fails
KeyError
a concrete exception raised when you try to access a non-existent element in a collection (e.g., a dictionary's element)