For your hobbies


Create a for loop that prompts the user for a hobby 3 times, then appends each one to hobbies.

No error: Output looks like this....

Enter your hobby  a
Enter your hobby  a
Enter your hobby  a
[u'a', u'a', u'a']

should be -->
['a', 'a', 'a']

hobbies = []
count = 3
# Add your code below!
for  i in range(3):
    hobby = raw_input('Enter your hobby ')
print hobbies


u is for unicode. Call str on that string to remove that symbol.


hm, the thing is - it only asks once about the hobby with the very same code by me and appends my first answer 3 times even though it's an accepted solution


That's probably because you have a loop to take input, like the other user does.


I had the same issue. Thanks for the help!