This is exactly what I have… but I’m still getting the “Oops, try again. It looks like you didn’t print each word from the user’s text to the console” message.
U got some problem with == and =. = is not equals operation. Check 8 line in your code.
And actually perfect to use words in foreach cycle (7 line).
like words.each do |words|
If I’m not mistaken, I believe your issue is as I state below. I don’t think it has anything to do with |word|
In your line of code (line 8), you’re setting word = to redact, you’re not actually checking to see if the two words are equivalent. The correct code should be:
if word == redact
...
Let me know if this resolves your issue, if not I’ll manually try and figure it out.