Need help with lesson 4 "Repeat for more input"


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


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


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


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