Oops, try again. Your code doesn't look quite right. Check the first exercise if you need help!


#1

can you check my code?

print "Input here: "
user_input = gets.chomp
user_input = user_input.downcase!
if user_input.include? "s"
    puts "Your string is: #{user_input}"
end

#2

This line will set user_input to nil if there is no change in case. There needs to be at least one capital letter in the input. Change to,

    user_input = user_input.downcase

Now you can input only lowercase and still set the value correctly.


#5

A post was split to a new topic: 99 problems


#6