From: Anthony Ob Date: 2010-10-01T10:50:14+09:00 Subject: Syntax error ERROR Test6.rb:4 syntax error, unexpected tSYMBEG, expecting kDO or '<' or '<' e.times do+y:x| test6.rb:5: syntax error, unexpected tSTRING_BEG, expecting kDO or '<' or '<' puts "Looping #{y}" test6.rb:7: syntax error, unexpected kEND, expecting $end] ERROR well here is the code CODE x = 1200 puts "Before the loop, x = #{x}" 3.times do|y:x| puts "Looping #{y}" x = y end puts "After the loop, x = #{x}" CODE -- Posted via http://www.ruby-forum.com/.