Python - Custom Exceptions
How do you correctly define a custom exception class named
DataError in Python?DataError in Python?class keyword followed by the class name and optional inheritance in parentheses.Exception so it behaves like a standard exception.pass inside the class body.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions