I'm working on looping through a Json response and I'm trying to figure out why in this case below I get a TypeError: 'int' not subscriptable.
list =  for i in range(len(json_data['MRData']['RaceTable']['Races']['Results'])): list.append(i['FastestLap']['Time']['time']) print(list)
I got around this by just doing a try:except block but I would rather know the length of what I'm iterating over. I tried reading some of the posts on here from other folks regarding this but couldn't make sense of it. Any help appreciated!