For your hobbies


#1



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']
None


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


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


#2

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


#3

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


#4

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


#5

I had the same issue. Thanks for the help!