Incognition logo
Home
Learn
Practice
Leaderboard
0
VisualizationsPython for AI

String Slicing

Drag the start and stop handles across "hello world" to slice out a piece of text. The start letter is kept; the letter at stop is left out.

Drag the handles across the letters

h
e
l
l
o
·
w
o
r
l
d
012345678910
0
5

start is included, stop is not

text[0:5]→
hello
Customize
Text
Start
Stop

11 characters