Question: write a class in python called notch that _init__(self,x,y,z) : Saves the arguments as attributes. Returns ValueError if x y z are negative, or if
write a class in python called notch that
_init__(self,x,y,z) : Saves the arguments as attributes.
Returns ValueError if x y z are negative, or if the sum is not equal to 400
and also
more_x_than(self,other) : Takes another notch object and returns True if self.x is greater than other.x , anything else just return False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
