Dicionário Python Get Value Se houver chave

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