-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
The add_grade() method calls validate_grade() but we should also add validation for negative numbers and non-numeric inputs.
Task:
- Enhance the validation in
add_grade()method - Add type checking for the grade parameter
- Raise appropriate exceptions with clear messages
Expected Behavior:
manager.add_grade("Math", -5) # Should raise ValueError
manager.add_grade("Math", "A+") # Should raise TypeErrorReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers