One - Liners


Hello Guys,

i know this topic is nothing new, but i can’t go with these exercises because of this error - message :

“Did you convert your ‘if’ statement to just one line of code? Check the Hint if you need a refresher!”

And this is my code :
“puts “One is less than two” if 1 < 2”

How did you go on with this ?

Greetings !


Take the quotes away from your puts
It should look like this
puts "one is less than two" if 1 < 2


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.