Having some issues section 4 of Redacted. I’ve attached my code below, and it outputs exactly as it should, however I get:
“It looks like you didn’t print each word from the user’s text to the console.”
Kind of stumped here, it seems to be printing it all… Any ideas? Cheers.
puts "give" text = gets.chomp words = text.split(" ") puts "censor" redact = gets.chomp words.each do |i| print i + " " end