Hello,
I'm using Python 2.7 to send a request to a third party API... it returns some data which php can print using print_r..in python if I just try to print the data returned I get ...
Quote:
|
{'packages': None, 'my_id': '1', 'tracks': [], 'this_id': '5', 'items': '12', 'row_total': None}
|
I'm not sure how to process this in Python.. I tried doing..
Code:
for item in data:
print item
..however that just outputs:
Quote:
packages
my_id
tracks
this_id
items
row_total
None
|
..where really I need to be able to access the value of each of those keys...
Any pointers or assistance would be greatly appreciated.
Many thanks,
P