Setting up the "If" branch part 1


#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!"
else
puts "Doesn't requirement of having an s!"
end


#2

You don't need downcase!

also..here..misspelling
if user.input.include? "s

there is _ , not dot...
user_input ?


#3

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