<filename>Python_Advanced_Softuni/Error_Handling_Lab/venv/value_cannot_be_negative.py
class ValueCannotBeNegative(Exception):
    def __init__(self, value):
        msg = f'{value} is negative'
        super(ValueCannotBeNegative, self).__init__(msg)

for _ in range(5):
    x = int(input())
    if x < 0:
        raise ValueCannotBeNegative(x)

<filename>Python_Advanced_Softuni/Error_Handling_Lab/venv/value_cannot_be_negative.py
class ValueCannotBeNegative(Exception):
    def __init__(self, value):
        msg = f'{value} is negative'
        super(ValueCannotBeNegative, self).__init__(msg)

for _ in range(5):
    x = int(input())
    if x < 0:
        raise ValueCannotBeNegative(x)
