A
A
Agiot2018-05-06 14:25:19
Python
Agiot, 2018-05-06 14:25:19

How to fill a dictionary with data from other dictionaries if their keys do not match?

There are 3 dictionaries. Their keys are people's names. People in all dictionaries are the same, only their names are different, for example, in the first dictionary the name of a person is 'Chicharito', in the second one he is 'Javier Hernandez', in the third one - 'J. Hernandez'. How is it easier to enter data from the 2nd and 3rd dictionary into the 1st one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Olohtonov, 2018-05-06
@sgjurano

Bring the names to a common form, this is the most correct solution :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question