Looping with for'


for k in 1..50
print k
I don't know what is wrong with my code please help
all it says is Oops, try again. It looks like you didn't print out the numbers 1 to 50, inclusive.


You forgot do after the declaration. First line:

for k in 1..50 do


oh ok thanks il say if it works or not


I did that but it stil.l wont work



for k in 1..50 do |k|


ok thanks
but it didn't work


it still will not work


clear all other code and it will