x = [
{'id': 'e5015', 'price': '2001.00000000', 'size': '0.30000000', 'time_in_force': 'GTC'},
{'id': 'bdd3d', 'price': '2000.00000000', 'size': '0.10000000', 'time_in_force': 'GTC'},
{'id': '32c60', 'price': '2000.00000000', 'size': '0.01770613', 'time_in_force': 'GTC'}
{**insert varying number of additional dicts here**}
]
How do we loop through this list of dicts, and assign them to incremental variables depending on how many dicts there are? (eg. z1, z2, z3, z4, z5, etc)
z1 = x[0]["price1"]
z2 = x[0]["price2"]
z3 = x[0]["price3"]
z4 = x[0]["price4"]
...etc...
z9 = x[0]["price9"] # If it exists