>>50
# Ruby has many ways to do the same thing
# You can even replace the do and end with { and }
for i in 1..5 do print "hi" end
(1..5).each do print "hi" end
1.upto(5) do print "hi" end
5.times do print "hi" end
And in fact it's entirely legitimate to enclose any one of those lines of code in parenthesis and ask ruby for it's class like so
print ((5.times do print "hi\n" end).class)