How to check for passing in the Grade class?


#1

Question

In this exercise, the optional is_passing() method is supposed to check if the score is passing? How can that be implemented?

Answer

The is_passing() method needs to check the object’s self.score attribute against the class variable Grade.mimimum_passing to determine if the score meets the requirements. If the score is greater than or equal to the minimum passing value, the method should return a value of True. Otherwise, it should return a False.