Correct code yet not working


#1



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


The code (as far as I can see) should be working perfectly fine yet I'm getting this:

Traceback (most recent call last):
  File "python", line 5, in <module>
TypeError: 'str' object is not callable


hobbies = []

# Add your code below!
for i in range(3):
    hobby = raw_input("What's your hobby?")
    hobbies.append(hobby)


#2

HI your for loop

for i in range(3):

instaed of i you should put hobby since you set hobby to raw_input() here

hobby = raw_input("What's your hobby?")

so it should be

for hobby in range(3):

#3

Error is the same regardless.

Traceback (most recent call last):
  File "python", line 5, in <module>
TypeError: 'str' object is not callable

#4

try to refresh the page because when I just ran it.. it work


#5

That actually worked, thanks.