On 04Nov2017 17:43, Sayth Renshaw <[email protected]> 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 <[email protected]> (formerly [email protected])
--
https://mail.python.org/mailman/listinfo/python-list