List slicing in Python
Briefly

Slicing a list gives us back a new list. We're getting a list of the first three items within our original list.
With Python's slicing syntax, the first item is the start index, and the second item is the stop index. The start index is inclusive, but the stop index is exclusive, meaning Python stops just before the stop index.
Read at Pythonmorsels
[
add
]
[
|
|
]