2/6 redacted


#1

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"
else
print word + " "
end

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

Please how am i wrong and can i get help?


#2

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