Réponse :
Explications :
1)
def tailleDico(dico):
resu = len(dico)
return resu
mes_fruits = {"poire": 3, "pomme": 4, "orange": 2}
resu = tailleDico(mes_fruits)
print(resu)
2) Plus de précision pour la question 2
3)
dico = { (i**2)%10 : i for i in range(11) }
print (dico)
la liste
{0: 10, 1: 9, 4: 8, 9: 7, 6: 6, 5: 5}