Sep-30-2019, 06:23 PM (This post was last modified: Sep-30-2019, 06:36 PM by buran. Edited 1 time in total.)
keyIDs = list(jsonData.keys()) #list of IDs listOfValsFromKeys = students[keyIDs[i] for i in range(len(keyIDs))] #list of namesWhen I run the lines above, I get a syntax error in between the 'for' and the 'i'. I cannot work out why this is the case. Could someone enlighten me?