I hate to be that person, but this is driving me nuts. I can't seem to get Part 5 - Control Flow quite right. Could someone please have a look at my code and let me know what I am doing wrong?
puts "Enter your sensitive text:" text = gets.chomp puts "Enter terms to redact:" redaction_text = gets.chomp words = text.split(" ") words.each do |word| if word == redaction_text print "REDACTED " else print word + " " end end
Thanks and regards to anyone who can assist.