print a list of dict and corresponding key as comma seperated values
I have following dict: data = { ‘A’: [{1.0: 133.0}, {4.0: 126.0}], ‘B’: [{1.0: 153.0}, {4.0: 16.0}], ‘C’: [{1.0: 9.0}, {4.0: 12.0}] } I need the output as follows: A, 1.0, 133.0 A, 4.0, 126.0 B, 1.0, 153.0 B, 4.0, 16.0 C, 1.0, 9.0 C, 4.0, 12.0 This is my attempt (working): with open("super.csv", "w")… Read More print a list of dict and corresponding key as comma seperated values