6 lines
133 B
Python
6 lines
133 B
Python
|
def find(d, keys, default=None):
|
||
|
for key in keys:
|
||
|
if key in d:
|
||
|
return d.get(key, default)
|
||
|
return default
|