MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/55ym3j/python_cheat_sheet/d8g5ilb/?context=3
r/Python • u/liranbh • Oct 05 '16
32 comments sorted by
View all comments
1
This (and some googling as it didn't really explain anything) finally made me figure out slices. Pretty straightforward now, but it seemed very arcane. a[start:end] (optional :step).
a[start:end]
:step
1
u/Airith Oct 06 '16
This (and some googling as it didn't really explain anything) finally made me figure out slices. Pretty straightforward now, but it seemed very arcane.
a[start:end](optional:step).