10.For your hobbies


#1

Hello,

I need help to correct my code as I noticed that the result is not the one expected.The problem is that the Python lessons goes further even if the code is not correct.How can I do that?

https://www.codecademy.com/courses/python-beginner-en-cxMGf/1/2?curriculum_id=4f89dab3d788890003000096#

Thanks!


#2

the exercise url is the same for everyone, please copy paste your code to the forum


#3
hobbies = []

# Add your code below!
hobby = str(raw_input("Your hobby: "))
for i in range(3):
    hobbies.append(hobby)
print hobbies

#4

the raw_input should be in the loop, otherwise, it will just remember the last user input, and append that 3 times to list


#5

Yes,

I know because I noticed what is listed in the interpreter.The problem is how I modify the current lesson if the only option is Start Next Lesson?This is my problem.


#6

you can click away the green bar (there is a close button on the right hand side) or refresh the page


#7
Thank you! :relaxed:

#8