5/6 "OOps try again ..."


#1



https://www.codecademy.com/courses/ruby-beginner-en-mzrZ6/0/5?curriculum_id=5059f8619189a5000201fbcb


I just want to know if I'm supposed to type something specific in the console? maybe that is what might cause the problem because I keep getting this message "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!)."


puts "Something typed"
    text = gets.chomp

puts "Something typed"
    redact = gets.chomp
    
words = text.split(" ")
words.each do |word|
print word

if word == redact
    print "REDACTED"
else 
    print words + " "
end
end.


#2

Remove or commnent out the above line.

Should read,

    print word + " "

should read,

    print "REDACTED "

#3

Thank you! it worked