I'm Stuck


#1


Thith Meanth War!: Setting up the "if" branch part 2

undefined local variable or method `user_input' for #


 
user_input.downcase! == gets.chomp
print "Duck"
if user_input.include? "s"
user_input.gsub!(/s/, "th")
end


#2

Try separating your setting of user_input and your downcase. You're also using == to set something when you should use =

user_input = gets.chomp
user_input.downcase!

#3

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