Python - Custom Exceptions
Which of the following is the correct way to define a custom exception named
MyError that extends ValueError?MyError that extends ValueError?class MyError(ValueError): pass to extend ValueError properly.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions