The split method


Not really sure what I’m doing wrong but getting tired of repeatedly trying to figure out this few lines of code.

puts "Enter some text: "
text = gets.chomp

puts "Enter words to redact: "
redact = gets.chomp

words = text.split(" ")

Results in run thinking, doesn't let me enter text either, frustrating part is I can move forward until I complete this step.


I’m having the same exact issue. The code runs, but it doesn’t stop and wait for the input prompts. It doesn’t seem to matter what computer or what browser I’m using, it does the same thing. It’s looks to be a bug, so I reported it.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.