MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / _check_grade

Method _check_grade

example_code/item_060.py:79–81  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

77
78 @staticmethod
79 def _check_grade(value):
80 if not (0 <= value <= 100):
81 raise ValueError("Grade must be between 0 and 100")
82
83
84 print("Example 4")

Callers 2

writing_gradeMethod · 0.95
math_gradeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected