Hi Guys,
I am getting “execution expired” when running this loop. As far as I see it is almost identical to their solution. What are your thoughts?
puts "Please write your name"
text = gets.chomp
puts "Please write your redacted word"
redact = gets.chomp
words = text.split(" ")
words.each do |word|
if word == redact
print "REDACTED"
else
print word + " "
end
end
[/codebyte]