Python · Lesson 2.1 · Pro
Slicing strings
Cut out parts of text by position, from the start, from the end, or in steps.
In this lesson
- Take a slice
- Leave out the start or the stop
- Steps and reversing
- Slices never go out of range
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.