Need help with lesson 4 "Repeat for more input"


#1



codecademy.com/en/courses/ruby-beginner-en-MxXx5/0/4?curriculum_id=5059f8619189a5000201fbcb


Hi everyone, I got stuck at lesson 4 "Repeat for more input", I don't quite understand the class wants me to do, but as I followed the instruction of the class, I wrote my code but it doesn't work. Could anyone give me some advice? Thanks a lot!


last_name = "huang"
print last_name
last_name = gets.chomp
city = "TPE"
print city
city = gets.chomp
state = "TW"
print state
state = gets.chomp


#2

You seem to have undone the default code, so perhaps reset the code and use the default as a reference for what to do?


#3

ok, I think that's the problem. after adding the default code it let me pass.
Thanks lonatan!


#4

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