Oops, try again. It looks like you didn't print each word from the user's text to the console.
puts "Type a sentence. " text = gets.chomp puts "Word to redact: " redact = gets.chomp words = text.split(" ") words.each do |word| if word == redact print "REDACTED " else print word + " " end end
What is happening? tried everything