B
B
BAD4R2020-09-14 16:59:01
Python
BAD4R, 2020-09-14 16:59:01

How to get a value from a dictionary in a dictionary?

There is a dictionary from which it is necessary to display the value by the key delivery:

a = {'Name': 'Владимир', 'payment': '{"delivery": "Москва", "orderid": "789152568"}', 'phone': '88005002020'}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pikeev, 2020-09-14
@Baryon

Well, first remove the quotes from the second dictionary.
https://www.pythonforbeginners.com/basics/list-com...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question