DEV Community

Discussion on: How to Slice Lists in Python

Collapse
 
reritom profile image
Tomas Sheers

In examples like this it might be clearer for your list to contain something like ["a", "b", "c", "d", ...] to avoid confusion with the index values used in the slicing