Repeat for More Input


#1



Hi all,
could you help me please !!!


Add print prompts, variables, and gets.chomps for the user's last name, city, and state/province. Use last_name as the variable for the user's last name, city for their city, and state for their state or province. (Hint: prompt the user to provide an abbreviation for their state or province, such as "NY" for New York. This will naturally lead us to use .upcase later!)


Oups, merci de réessayer. Did you declare a variable called city?


print "What'is your first name?"
first_name = gets.chomp
print "What is your last name?"
last_name = gets.chomp
print "In whish city lives you?"
city_name = gets.chomp
print "In whish state/province lives you?"
state_name = gets.chomp
.


#2

Hard to tell without a link to the lesson; However, it seems that the lesson wants you to declare a variable entitled "city" and not "city_name"


#3

HIYEP. YOU'R RIGHTTHX @fight_dragons

-------- Message d'origine --------De : fight_dragons codecademy@discoursemail.com Date : 23/06/2017 16:46 (GMT+01:00) À : adoudick@gmail.com Objet : [Codecademy Discuss] [Ruby/2. Putting the Form in Formatter] Repeat for More Input








    fight_dragons


    June 23

Hard to tell without a link to the lesson; However, it seems that the lesson wants you to declare a variable entitled "city" and not "city_name"

Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.