What will this Ruby code return?

answer = "runthisnafleogw"
p answer[0..2]
p answer[3..6]
p answer[5..5]+answer[7..7]
p answer[8..8]
p answer[9..9]+answer[5..5]+answer[10..11]
p answer[3..3]+answer[12..12]
p answer[13..13]+answer[11..11]+answer[3..3]
p answer[3..4]+answer[11..11]
p "answer"

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to