Login
From:
www.pythonmorsels.com
(Uncensored)
subscribe
List slicing in Python - Python Morsels
https://www.pythonmorsels.com/slicing/
links
backlinks
Roast topics
Find topics
Find it!
In Python, slicing looks like indexing with colons (:). You can slice a list (or any sequence) to get the first few items, the last few items, or all items in reverse.