I want to raise an Value Error for negative values of a and b. I have played around with this but it raises ValueError for different values and it does not seem to work properly.
class RightTriangle:
def __init__(self, a, b):
self.a = a
self.b = b
self.c = np.sqrt(a**2+b**2)
if (self.a or self.b) < 0:
raise ValueError("Negative")