2/6 redacted


I used this code and it dosent work:
puts text = gets.chomp

puts redact = gets.chomp

words = text.split(" ")

words.each do
if text == redacted
print "REDACTED"
print word + " "

i keep getting this:
(ruby):11: syntax error, unexpected $end, expecting keyword_end

Please how am i wrong and can i get help?


Read that error message really carefully, it says exactly what's wrong!

It expected one thing but got another, can you guess what either of them means?l
It's also something that is incredibly likely to give you lots of results if you google that error message