Can't follow the instructions on this step at all :-/


#1



Exercise 5: If Branch Pt2


No error message


print "What is the date today?"
user_input = gets.chomp.downcase!
if user_input.include? "s"
end

Instructions: Remove the print statement you added to your if statement and replace it with a call to .gsub! on user_input. Have it replace /s/ with "th".

I really do not understand what I am supposed to be doing here. I deleted the print line and added:

user_input.gsub!(/s/, "th")

But nothing happened :-/


#2

Please post all your preformatted code separate I can't make much of it seeing as you formatted your question and dilemma along with your code. :slight_smile:


#3

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