← Back to Dictionaries
Question 296
Scores Above The Cutoff
Scores Above The Cutoff
Read a cutoff as a whole number from the input (one line, no prompt) and print every student in the dict scores whose score is strictly above it, one per line in insertion order, in the form <name> <score>. After the loop always print the word Done on its own line, so when nobody is above the cutoff that word is the only output. Input: one line. Output: the matching lines, then Done.
Expected Output:
maya 88 omar 92 Done
= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
Dictionaries
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.