str = "level"str.each_char do |c| puts cend# Iterating with indexfor i in 0...str.length puts "str[#{i}] = \"#{str[i].chr}\""end