CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
Lists
📥 Auto-Input:
70\n
This input is automatically fed to your program's stdin
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.