← Back to Loops
Question 390
First Above The Limit
First Above The Limit
A list of readings is declared. Read a limit and print the first reading that is strictly above it, in the form First above: <value>, without using break: keep a boolean flag that starts False and becomes True once a value has been printed, so later values are ignored. If no reading is above the limit print None above after the loop. Input: one integer, no prompt.
Expected Output:
First above: 22= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
Loops
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.