Problem in 4/7



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:

Please provide a solution.

Best regards,

Omair Hassan Khan


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


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


Even I m getting the same problem



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.