3/8 build a word array


i don't know why this code is not working

puts "text please: "
text = gets.chomp
words = text.split(",")



if you use split(",")
you want to split a string which is using the comma-,
as a separator
a text like "a,b,c"
would become

If have a normal text like
text= "This is a text"
you have to use
text.split(" ")