'unicode' object has no attribute 'append'



AttributeError: 'unicode' object has no attribute 'append'

prompt the user for a hobby 3 times, then append each one to hobbies.

hobbies = []

for i in range(3):
     hobbies=raw_input("What is your hobby?")


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.