redacted 1,as the example we seen, i am little bit confused
puts "Text to search through: "
text = gets.chomp
puts "Word to redact: "
redact = gets.chomp
words = text.split(" ")
words.each do |word| #why this is word in the vertical line but not words, pls explain this to me
if word != redact #same here
print word + " " #same here
print "REDACTED "
Replace this line with your code.