Won't recognize code


I have copy and pasted the line of code from the opening example of what it should look like but i keep getting the "Oops, try again. It looks like your 'if' statement syntax isn't quite right. Don't forget to end it with an 'end'!"


The code from the opening example is:

print "Thtring, pleathe!: "
user_input = gets.chomp

if user_input.include? "s"
  user_input.gsub!(/s/, "th")
  puts "Nothing to do here!"
puts "Your string is: #{user_input}"

This code works perfectly, is it the exact same code as yours?


I'm having a very similar problem, I typed up
print "Thtring, pleathe!: "
user_input = gets.chomp
but when i click Save and Submit, the loading wheel thing just keeps rotating and won't let me
continue to the next exercise....I need help...I think there's a glitch though


Hi, i just wrote Hi and it worked for me. Try it by yourself and then tell me if that worked for you :wink: