CJCoding With Joseph
15free / daySign inCreate account

Scores Above The Bar

Write rows to grades.csv with the header line name,score first and one row per line, the two values joined by a comma. Then read a whole number, the bar, from input, open the file with csv.DictReader and print <name>: <score> for every row whose score (converted with int()) is at or above the bar, in file order; after the loop print <n> at or above <bar> with the number of rows shown. Input: one line, no prompt. Import only csv.

Expected Output:

Ben: 92
Dev: 85
2 at or above 80

= newline. The output ends with a newline — print one after the last line.

Hints4 available
Topics:
FilesCSV
📥 Auto-Input:
80\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.