Questions et réponses pour le dictionary :

A dictionary maps keys to values allowing efficient retrieval of values by keys. *USE [map-function] TAG* for mapping functions over collections; and for geography, [maps].

26
votes
J'ai cherché beaucoup de réponses sur le net. J'ai écrit une itération sur une liste de lettres et mis des cartes à l'intérieur à l'écran ...

0
votes
Voici mon code:{ 'sara':{'gender':'f' , 'lan':'python'} , 'john':{'gender':'m' , 'lan':'python'}} Ma contribution:{'john':{'gender':'m' , 'lan':'python'} La sortie ...

1
votes
J'ai une liste avec des valeurs répétées et je veux les compter en utilisant une compréhension de dictionnaire Voici ma première tentativenumber_list ...

-1
votes
J'ai une structure de données:new_matches = [] for j in matches: newdict = dict() for key,value in j.items(): if key in newdict.keys(): if value not in newd ...