Quiz · Strings · lesson 4 of 10
Quiz — string slices
What does the program print?
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.
What does the program print?
s = "abcdef"
print(s[1:4], s[::2], s[4:100])The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.