Looping on a list in json
Cameron Simpson
cs at cskk.id.au
Sat Nov 4 20:56:07 EDT 2017
On 04Nov2017 17:43, Sayth Renshaw <flebber.crue at gmail.com> wrote:
>figured it. Needed to use n to iterate when creating.
Yeah, my mistake.
>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"]
That's the beauty of offering untested code: I don't have to find and fix my
errors:-)
Cheers,
Cameron Simpson <cs at cskk.id.au> (formerly cs at zip.com.au)
More information about the Python-list
mailing list