Le dictionnaire Python obtient de la valeur si la clé existe

val = dict.get(key , defVal)  # defVal is a default value if key does not exist 
Breakable Bee