Problem in 4/7


#1

Hi,

My code is as follows:

print "last name"
last_name = gets.chomp
print "City"
city = gets.chomp
print "state"
state = gets.chomp

But I am having problem in inputting the data and in the end it shows that task was not completed.

Lesson Link is here:
https://www.codecademy.com/courses/learn-ruby/lessons/putting-the-form-in-formatter/exercises/repeat-for-more-input?action=lesson_resume

Please provide a solution.

Best regards,

Omair Hassan Khan


#2

can you show a screenshot of your attempt to input the data?


#3

hi,
to solve your problem you have to use these four variables : first_name, last_name, city and state.
best regards. :slightly_smiling_face:


#4

Even I m getting the same problem


#5

#6

the OP issue seems to be resolved (based on solution check mark i got), so the topic is resolved. IF you still have an issue, create a new topic and don’t hijack an existing one, see guidelines

also checkout this topic:

what information you can provide to get a better reply, which should give a more satisfying answer to your question.