this is my code for the redacted problem I've been through the forums and nothing seems to help it keeps telling me "Oops, try again. Make sure to print each word from the user's text to the console unless that word is the word to be redacted; if it is, print REDACTED (all caps!)."
I have no idea what this means or how to fix it please help.
puts "please input text"
puts "Which words shall we redact"
words=text.split (" ")
words.each do |word|
if word != "redacted"
print "REDACTED "
else puts word + " "