Stuck! "State"


#1


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

Uploading... .>


print "What is your last name?"
last_name = gets.chomp
print "Which city are you from?"
city = gets.chomp
print "Which state/province are you from?"
state = gets.chomp


#2

What, may I ask, is the problem?


#3

Hello :slight_smile:

Your code is correct, but you were supposed to add this code at the end of the script (after asking user about the first name).

You simply have to add print and gets.chomp for the first name:

print "What is your first name?"
first_name = gets.chomp

#4

Thanks, finally I am understood it)))


#5

You're very welcome :slight_smile: