QUESTION IMAGE
Question
question # 4
multiple choice
what is the missing word in the following code?
____over120error(exception):
pass
exception
class
def
error
Brief Explanations
In Python, when defining a custom exception class, the keyword 'class' is used. Here, we are defining a new exception - like class named Over120Error which inherits from the built - in Exception class. So the missing keyword is 'class'.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
B. class