3/6 redacted


#1

Hello

I write this code but it does'nt work. Why ?

puts "text"
user_input = gets.chomp
puts "redact"
user_input = gets.chomp

words = text.split (" ")


#2

here my code.
puts "text "
text = gets.chomp

puts "redact "
redact = gets.chomp

words = text.split (" ")

don't use end, at the end of your code.


#3

Why are you defining user_input twice? You are supposed to define the variables text and redact and not user_input.