Home>

There is a kind of dictionary of dictionaries

{'' Telegram ': {' Afghanistan ': {' Virtual18 ': {' Cost ': 12.19,' Count ': 1000},' Virtual23 ': {' Cost ': 16.25,' Count ': 1000}}

and I need to sort the value price at the lowest price

Import JSON
Import Requests.
Product= 'Telegram'
Headers= {
    'Content-Type': 'Application /Json',
}
Params= (
    ('PRODUCT', PRODUCT),
)
Response= Requests.get ('https://5sim.net/v1/guest/prices', headers= headers, params= params)
R= response.json ()
For SMTH IN R ['Telegram']:
    IF SMTH ['COST']:
        Print (SMTH)

And then I do not understand how to go through a dictionary or can the MIN () function, help understand