18/18 Iterating with .times


#1

My code isn't running, simple as it it...

30.times {print "Ruby"}

Could anyone tell me what is wrong?


#2

Your code works in the lab, what error are you getting?


#3

Thank you for responding. It had said Ruby wasn't printing 30 times basically; but I can see it there alright. I refreshed everything and ran the code again and it went through. Thank you again!


#4

I am unable to pass this stage either. the code is simple. the error i get is "
Oops, try again. It looks like you didn't print out the string 'Ruby!' 30 times."

Any help would be greatly appreciated!

Thanks


#5

Your forgot the exclamation mark " ! " at the end of "Ruby!"


#6

the answer is
30.times {print "Ruby!"}


#7

30.times {print "Ruby!"}

#8

it is supposed to say 30.times {print "Ruby!"}

(hint) you forgot the "!"


#9

Make sure you format it "Ruby!" with an ! included. If you are missing this character it will be counted as incorrect.