Creating multiple python dictionaries from a file

Read the file line by line. Split each line on ‘,’. Have a dictionary with key as flower type and list of measurements being value. Each time, you get new measurements for the type append to the list.

Leave a Comment