← Back to Lists
Question 113
Start Stop Step
Start Stop Step
The list grades holds eight marks. Print the elements at indexes 0, 2 and 4 as one list using a slice with all three parts filled in: a start of 0, a stop of 6 and a step of 2. No input is read.
Expected Output:
[74, 91, 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.