← Back to Lists
Question 108
Three From The Middle
Three From The Middle
The list grades holds eight marks. Print the slice that starts at index 2 and stops before index 5, so three elements appear; print the slice itself, which shows as a list with square brackets and commas. No input is read.
Expected Output:
[91, 65, 79]= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
ListsSlicing
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.