Let's talk a bit about your previous screenshot. It clearly shows that you have executed the code and then modified the code. It does not make any sense to do that, especially if you want someone to help you.
its like it not getting anything from puts
Well, it should not take anything from
puts. We use
puts to print out something to the console, right? If you want to get the input from the user you have to use
Your code is correct and it outputs the correct output for the input you have given. In the console (black box, right upper corner) provide some input, do not skip with the enter.
This is how the console window should look like:
Text to search through:
My name is Levi Smith
text to redact:
["My", "name", "is", "Levi", "Smith"]