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

  1. Take a slice
  2. Leave out the start or the stop
  3. Steps and reversing
  4. Slices never go out of range