Skip to content
Quiz · Strings · lesson 4 of 10

Quiz — string slices

What does the program print?

Python
s = "abcdef"
print(s[1:4], s[::2], s[4:100])

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way