Mar-24-2020, 12:02 PM
One way is to understand structure of the dictionary. Maybe this will help:
>>> d = {"id":1,"car":{"car_make":"Ford","car_model":"Club Wagon","car_year":1997},"price":"$5179.39","total_sales":446} >>> d.keys() dict_keys(['id', 'car', 'price', 'total_sales']) >>> d['car'].keys() dict_keys(['car_make', 'car_model', 'car_year']) >>> d['car']['car_make'], d['total_sales'] ('Ford', 446)
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.