'unicode' object has no attribute 'append'

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

https://www.codecademy.com/en/courses/python-beginner-en-cxMGf/1/2?curriculum_id=4f89dab3d788890003000096#
<In what way does your code behave incorrectly? Include ALL error messages.>

AttributeError: ‘unicode’ object has no attribute ‘append’
<What do you expect to happen instead?>
prompt the user for a hobby 3 times, then append each one to hobbies.

```python

hobbies =

for i in range(3):
hobbies=raw_input(“What is your hobby?”)
hobbies.append(hobby)

<do not remove the three backticks above>

the variable where you store the user input and the list have the same name

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