Answers for "create dictionary from a nested list"

0

create dictionary from a nested list

my_dict= 'mc': [[{'id': '1.185662381',
        'marketDefinition': {'bspMarket': False,
         'turnInPlayEnabled': True,
         'persistenceEnabled': True,
         'marketBaseRate': 5.0,
         'eventId': '30729399',
         'eventTypeId': '1',
         'numberOfWinners': 1,
         'bettingType': 'ODDS'}],
    [{'id': '1.185662380',
        'marketDefinition': {'bspMarket': True,
         'turnInPlayEnabled': False,
         'persistenceEnabled': True,
         'marketBaseRate': 5.0,
         'eventId': '30729399',
         'eventTypeId': '1',
         'numberOfWinners': 1,
         'bettingType': 'ODDS'}]]
Posted by: Guest on September-15-2021

Code answers related to "create dictionary from a nested list"

Python Answers by Framework

Browse Popular Code Answers by Language