Puts Statement with String Interpolation

I am attempting to figure out lesson 7 within the Control Ruby Unit. It states the following:
“Add a puts statement that uses string interpolation to show the user their transformed string.”
I typed in the following code:

print "String Please" 
user_input = gets.chomp
If user_input.include? "s" 
puts "Your string is #{user_input}" 
    print " your string is #{user_input}!" 

Replace this line with your code. 

It’s just asking you to use the puts command when your string goes through the transformation.
if user_input.include? "s" puts user_input.gsub....

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