Loading...
Loading...
Loading...
Students pass with 40 marks or more. Read name,mark lines and print how many students passed.
name,mark.Example
Input
4 Asha,82 Ravi,39 Meena,40 John,12
Output
2
Asha and Meena passed.
Try the problem first. Open one hint at a time.
Count with a loop or with sum over a condition.
Convert the mark to int first.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor