Stuck on: Repeat for More Input


Having trouble with this code...

print "What's your first name?"
first_name = gets.chomp
print "What's your last name?"
last_name = gets.chomp
print "What's your city?"
city_name = gets.chomp
print "What's your state?"
state_name = gets.chomp

I enter in all prompts, but once I run the code I get a message asking if I declared a variable named city? Which it looks like I did...what am I doing wrong?


Hi try to change city_name to just city The same for state_name to just state


Thanks. I appreciate it.