← Back to Lists
Question 131
Count The Passes
Count The Passes
Read the pass mark as one integer from input() with no prompt, then walk the list grades with a for loop and count how many elements are greater than or equal to that mark, adding one to count each time. After the loop print the count as a single number. Input: one integer. A mark above every grade gives 0.
Expected Output:
5= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
Lists
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.