I have a dictionary of dictionaries that looks like this:
{'info': {'status': 'OK',
'data': {'account': [{'currency': 'USD',
'name': 'United States Dollar',
'amount': '100',
'used': '20',
'total': '120'},
{'currency': 'EUR',
'name': 'Euro',
'amount': '150',
'used': '35',
'total': '185'}]}},
'USD': {'amount': 100, 'used': 20, 'total': 120},
'EUR': {'amount': 150, 'used': 35, 'total': 185},
'amount': {'USD': 100, 'EUR': 150},
'used': {'USD': 20, 'EUR': 35},
'total': {'USD': 120, 'EUR': 185}}
What I want to get from this is a currency list:
currency_list = ['USD','EUR']
and I would like to get a currency name list:
currency_list = ['United States Dollar','Euro']
How can I access the dictionaries?