# 1. create a file called "friends.csv" # 2. gather the following information 5 friends: # name # email address # favorite cartoon (or movie) # for each friend, record the information in one line in friends.csv, # separate each piece of information with a comma (,) # 3. write a function to read the file # using open() and read() # 4. write a function to read the file # using open() and readlines() # 5. write a function to read the file # using open() and readline() # 6. write a function to read the file # using with open() # 7. write a function to read the file and # process the information # split the information into pieces (reminder, we have csv, thus split by a comma) # store the information in a dictionary, where # key is (friend) name # value is list containing email and cartoon, that is, [email, cartoon] # the function then returns the newly created dictionary # # additional practice # 8. modify the function from step 7 to allow multiple email address and # favorite cartoon # hint: instead of having a single list as value, you may # consider value as [ [list-of-emails], [list-of-cartoons] ] # or { 'email':[list-of-emails], 'cartoon':[list-of-cartoons] }