For your hobbies 10/19


#1

This is my code for the mentioned exercise
hobbies = []

Add your code below!

for i in range(3):
hobby=str(raw_input(‘enter the hobby’))
hobbies.append(hobby)
print hobbies
when I tried to run the code, it was not accepting any input and on trying again, I got the following output-
enter the hobbyenter the hobby[‘RUN’, ‘hobbies = []’, ‘’]
Can anyone please explain why this is happening?


#2

sometimes there are problems with raw_input(), then it gets fixed but for some reason this bug keeps coming back.


#3

so my code is correct? And what does it really mean?


#4

your code is fine, there is a problem with the validation of your code by codecademy


#5

ok Thanx for helping


#6

with the get code button you should be able to get past this exercise


#7

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