101 Logo
onenoughtone

Interactive String Visualization

String Indexing

Each character in a string has a position (index), starting from 0.
0H
1e
2l
3l
4o

String Operations

Concatenation

H
e
l
l
o
+
W
o
r
l
d
=
H
e
l
l
o
W
o
r
l
d

Substring (Slicing)

0H
1e
2l
3l
4o
string[1:4] = "ell"
e
l
l

String Searching

Finding a pattern within a string is a common operation.
M
i
s
s
i
s
s
i
p
p
i
Search for "issi"
M
i
s
s
i
s
s
i
p
p
i
Found at index 1
IntroVisualizePractice
101 Logo
onenoughtone