question # 5\ndropdown\nsuppose you are writing a program to sell tickets to a concert. the maximum number…

question # 5\ndropdown\nsuppose you are writing a program to sell tickets to a concert. the maximum number of tickets available is 400.\nyou created your own error type.\nclass over400error(exception):\n pass\nwhat is the missing term in the code that handles that error?\nif tickets > 400:\n over400error
Answer
Explanation:
Step1: Identify error - raising situation
In Python, when a custom - defined error condition occurs, we need to raise the custom error. Here, when the number of tickets is greater than 400, we should raise the Over400Error which we have defined.
Step2: Recall Python error - raising syntax
The syntax to raise an error in Python is raise <error - class>.
Answer:
raise