Skip to content

Instantly share code, notes, and snippets.

View NielsMinssen's full-sized avatar

Niels NielsMinssen

  • Département de la Charente-Maritime
  • La Rochelle
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
mon_dictionnaire = {'clé1': 'valeur1', 'clé2': 'valeur2', 'clé3': 'valeur3'}
mon_dictionnaire['nouvelle_clé'] = 'nouvelle_valeur'
valeur = mon_dictionnaire['clé1']
# Modification
mon_dictionnaire['clé1'] = 'nouvelle_valeur'
# Suppression
del mon_dictionnaire['clé2']
for cle in mon_dictionnaire: