Setting up the "If" branch part 1


Hello, I can't figure out what is wrong with my code:

puts "Hello, what is your name?"
user_input = gets.chomp.downcase!

if user.input.include? "s"
puts "Found an s!"
puts "Doesn't requirement of having an s!"


You don't need downcase!
if user.input.include? "s

there is _ , not dot...
user_input ?


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