01 / 07
Cut out a range
When you want several characters at once rather than one, you slice.
Write word[0:3] and you get from number 0 up to but not including number 3 — the first three characters. Exactly the shape you used on lists.
word = "sunday"print(word[0:3])Result
sun