Loading...
Loading...
Loading...
A mark of 40 or more is a pass. Given the marks of a class, print how many students passed.
Example
Input
4 72 35 88 41
Output
3
72, 88 and 41 are passes.
Try the problem first. Open one hint at a time.
Use a counter that starts at 0 and goes up by 1 for each mark that passes.
Check mark >= 40, not > 40.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor