For your hobbies
Wondering the difference between append and defining a list by each position
Also getting a weird result of entered hobbies (with append or insert) as such [u'golf', u'soccer', u'football']
I expect that hobbies[i] = hobby would assign hobby to the position in the list of i. Such as that hobbies[i] on its first go around the loop would be hobbies = first hobby user enters, second loop around hobbies[i] is now hobbies = second hobby user eneters.
Is this because hobbies when declared doesnt have a length yet? Or is the only methods to name a value at a position in a list .append() and .insert(i,hobby) ? I am confused as why this wouldn't work. Thank you for any information
hobbies =  # Add your code below! for i in range(3): hobby = raw_input("Hobby?: ") print i #testing to see what index is hobbies[i] = hobby #hobbies.append(hobby) #hobbies.insert(i,hobby) print hobbies