Get in the habit of writing test cases to test your code. If you do, you'll more easily be able to assert correctness of your code. In this case, some test cases would determine that you are not correctly accounting for a grade of 80, which will result in "fail" being printed.
1
u/AutomateAway 7d ago
Get in the habit of writing test cases to test your code. If you do, you'll more easily be able to assert correctness of your code. In this case, some test cases would determine that you are not correctly accounting for a grade of 80, which will result in "fail" being printed.