Looping on a list in json

Sayth Renshaw flebber.crue at gmail.com
Sat Nov 4 20:43:04 EDT 2017


Sorry

figured it. Needed to use n to iterate when creating.

runner_lists = {}
    for n, item in enumerate(result):
        # if this one is interested / not -filtered:
        print(n, item)
        runner_lists[n] = result[n]["RacingFormGuide"]["Event"]["Runners"]

Sayth



More information about the Python-list mailing list