103.py 1 2 3 4 5 6 7 8 9 10class NegativeNumberError(Exception): pass num = int(input("Enter A Positive Number : ")) if num < 0: raise NegativeNumberError("Negative Numbers Are Not Allowed") print("Valid Number")