These are simple loops in Ruby. First is a loop using the for-each syntax you may be familiar with, second is the much cooler "each" Enumeration that is far cooler and more "pure" (whatever that means).
# for-each loop
for i in list
# do something with item 'i'
p i
end
# enumeration loop
list.each do |i|
# do something with item 'i'
p i
end