Python · Lesson 4.2 · Pro
Slicing lists
Take the first few, the last few, or every other item of a list.
In this lesson
- Slices work like on strings
- First n and last n
- Steps
- A slice is a new list
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.