← Back to Lists
Question 126
The Middle Grade
The Middle Grade
Find the middle element of the list grades without hard-coding its position: compute the index as the length from len() floor-divided by 2 (the // operator), keep it in middle, and print the element at that index. The list has five items, so the middle one is the third. No input is read.
Expected Output:
91= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
ListsOperators
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.