Up the down staircase

This is the solution I found and it’s working.
All the other references were not working

“L”.upto(“P”) { |letter| print letter, “”

puts newline

}

Hello @raffaele, welcome to the forums! Do you have a question about why this works? (This looks like Ruby; am I correct?)
Edit: I moved this into the Get Help >> Ruby category.

1 Like

Correct. .upto is a Ruby String class method.

1 Like

Have to ask, is there a question to accompany this topic? Else it will have to be closed.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.