Simple types / Strings

str = "level"

str.each_char do |c|
    puts c
end

# Iterating with index
for i in 0...str.length
    puts "str[#{i}] = \"#{str[i].chr}\""
end