String slices

s = "python" → s[1:4] = yth

You can also choose a level by clicking a star.

About the course

Description
The slice s[a:b] – from index a to b (excluding b)
More information
Working with lists and strings in Python. Indexes start at zero.
Sample question
s = "python" → s[1:4] = yth
Author
Jiří Preisler
Version
1.0