Split


#1


https://www.codecademy.com/courses/ruby-beginner-en-mzrZ6/0/3?curriculum_id=5059f8619189a5000201fbcb


uts "What is your name?"
text = "Ayotunde"
gets.chomp
puts "Where are you from?"
redact = "Lagos"
gets.chomp
words = "te xt"
text.split(",")


#2

words = "te xt"
text.split(",")

read the instruction again :slight_smile:

you are not told to store a string value("te xt") to the variable words .

your last line of code should be store to the words variable.

also Pass .split a space (" ") not (",")


#3

Thank you! This is helpful :slight_smile:


#4

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