Strings In Depth7 / 19
Up next

Search

s = "hello world"
puts s.include?("world")
# index returns the position, or nil if absent
puts s.index("o")
p s.index("z")
What you're solving

include? and index