Last active
November 25, 2020 14:58
dict
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mon_dico_vide=dict() #création d'un dictionnaire vide | |
mon_dico={"Prénom": "Anne", "Nom":"Martin", | |
'Age':25, 'Profession': 'Statisticienne'} #création d'un dictionnaire non vide | |
print(type(mon_dico_vide)) | |
print(mon_dico_vide) | |
print(type(mon_dico)) | |
print(mon_dico) | |
#Création de deux listes | |
prénoms=["Alex","Pierre","Jean"] | |
ages=[15,14,17] | |
dico_prenom_age=dict(zip(prénoms,ages)) | |
print(type(dico_prenom_age)) | |
print(dico_prenom_age) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment