create dictionary from a nested list

Solutions on MaxInterview for create dictionary from a nested list by the best coders in the world

showing results for - "create dictionary from a nested list"
Eleonora
11 Apr 2019
1my_dict= 'mc': [[{'id': '1.185662381',
2        'marketDefinition': {'bspMarket': False,
3         'turnInPlayEnabled': True,
4         'persistenceEnabled': True,
5         'marketBaseRate': 5.0,
6         'eventId': '30729399',
7         'eventTypeId': '1',
8         'numberOfWinners': 1,
9         'bettingType': 'ODDS'}],
10    [{'id': '1.185662380',
11        'marketDefinition': {'bspMarket': True,
12         'turnInPlayEnabled': False,
13         'persistenceEnabled': True,
14         'marketBaseRate': 5.0,
15         'eventId': '30729399',
16         'eventTypeId': '1',
17         'numberOfWinners': 1,
18         'bettingType': 'ODDS'}]]
19