ValueErrorValueError
A function received an argument of the right type but an inappropriate value.
TypeError: object is not iterableAn object that does not support iteration was used in a for loop, unpacking, or other iterable context.
You used a non-iterable object (int, float, None, bool) in a for loop, list comprehension, unpacking, or other context that requires an iterable. A function may have returned None instead of a list.
Check the object's type before iterating. Add a None check. Verify functions return iterables, not None. Wrap single values in a list: [value]. Use isinstance(obj, Iterable) from collections.abc for checking.
for x in 42: pass # TypeError: 'int' object is not iterableValueErrorA function received an argument of the right type but an inappropriate value.
ArithmeticErrorBase class for arithmetic errors including ZeroDivisionError, OverflowError, and FloatingPointError.
ConnectionErrorA connection-related error occurred during a network operation.
NameErrorA local or global name was referenced that has not been defined.
ResourceWarningA warning about improper resource management, such as unclosed files or connections.
LookupErrorBase class for errors raised when a key or index is not found (KeyError, IndexError).