HELP PLEASE. What is wrong in my code? print "input: " user_input=gets.chomp.downcase! if user_input.include?"s" puts "Found s " else puts "Don't found s" end
! because it returns
nil class if no changes were made.
if you type a
string value that already
downcase then it'll return nil class.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.