← Back to Lists
Question 140
Grades Above The Line
Grades Above The Line
Read a threshold as one integer from input() with no prompt. Count, with a for loop and an if, how many elements of the list grades are strictly greater than the threshold, then print one sentence in the form <count> of <total> grades are above <threshold> where the total comes from len(). Input: one integer.
Expected Output:
4 of 8 grades are above 70= 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.