Sep-30-2019, 07:02 PM
(Sep-30-2019, 06:54 PM)stullis Wrote: Okay, now I'm tracking. To do that, we need to move jsonData into the comprehension.
keyIDs = list(jsonData.keys()) #list of IDs listOfValsFromKeys = [jsonData[i] for i in keyIDs]Of course, you could also use dict.values() instead. It performs the same operation as dict.keys() except it returns the values instead of keys.
Great thanks :)