So I keep getting this error every time I run the program and it's mind boggling me. I've tried it in many different variations from the community here they all give me the same error message.
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 word + " " else print "REDACTED " end end