Ajouter la clé s'il n'existe pas Python
# credit to Stack Overflow user in the source link
# d is your dictionary
if key not in d:
d[key] = value
wolf-like_hunter
# credit to Stack Overflow user in the source link
# d is your dictionary
if key not in d:
d[key] = value
if key not in d:
d[key] = value