Hi fellow coders,
The exercise accepted my code as correct yet it did not substitute any words with REDACT.
Could you please help me find the error?
text= gets.chomp puts text redact= gets.chomp puts redact words= text.split(" ") words.each do |words| print words if words == redact print "REDACTED " else print words + " " end end
Thank you very much in advance!