Read a slice
Take your time, follow the code and check your understanding.
The codeLists
values = [10, 20, 30, 40]
print(values[1:3])Your answer3 min · no timer
Show solution and explanation
The start index is included; the end index is excluded. Indices 1 and 2 hold 20 and 30.
[20, 30]