Dictary = {
'code':6734,
'dept': 'sales',
123-45-6789:"Mr.Potato Head \n234 Potato Lane \nPotato Chip, ID 77725"
}
for i in Dictary.keys():
if i == 123-45-6789:
print(Dictary.get(i))
break
else:
print("Key not found")
You can further test this code by deleting Mr.Potato head's info from the dictionary. I hope this helps!