Variable is unreadable to the code however its identical to the others


#1


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

when i run the code it works fine it asks me for my first name last name etc etc however once i have completed the run of the code it says undefined local variable i was wondering what i had done wrong? # is the error code i have


int"what is your first name?"
variable_first_name=gets.chomp
print"what is your last name?"
variable_last_name=gets.chomp
print"what city are you from"
variable_city=gets.chomp
print"what state are you from"
variable_state=gets.chomp
puts"your name is #{first_name}! your last name is #{last_name}! the city you live in is #{city}! which is in #{state}!!"


#2

HI this line

variable_first_name=gets.chomp

you define a variable variable_first_name but it should be first_name
the same for the others


#3

ahh its the little things with coding haha... again i really appreciate everyone's help on here !!