now to create your own custom exception classwill write some code and import the new exception class from negativenumberexception import negativenumberexception def enterage(age)if age raise negativenumberexception('only positive integers are allowed'if age = print('age is even'elseprint('age is odd'trynum int(input('enter your age')enterage(numexcept negativenumberexceptionprint('only positive integers are allowed'exceptprint('something is wrong'outputenter your age- only positive integers are allowed another way to create custom exception class class customexception(exception)def __init__(selfvalue)self parameter value def __str__(self)return repr(self parametertryraise customexception('my useful error message!'except customexception as instanceprint('caughtinstance parameter