each_with_index do |country, index| puts country + " " + index.to_s end 4. each_index Iterator: Just to know the index at which the element is placed in the ...
確定! 回上一頁