Strings In Depth9 / 19
Up next

Slice by index

s = "hello"
# a single index gives a one-character string
puts s[0]
# [start, length] gives a substring
puts s[1, 3]
What you're solving

[i] and [start, length]