writing data to csv from dictionaries with multiple values per key
问题 Background I am storing data in dictionaries. The dictionaries can be off different length and in a particular dictionary there could be keys with multiple values. I am trying to spit out the data on a CSV file. Problem/Solution Image 1 is how my actual output prints out. Image 2 shows how i would want my output to actually printout. Image 2 is the desired output . CODE import csv from itertools import izip_longest e = {'Lebron':[25,10],'Ray':[40,15]} c = {'Nba':5000} def writeData(): with