3 lines
137 B
Python
3 lines
137 B
Python
# Define a function to safely access dictionary keys
|
|
def safe_get(dictionary, key, default=None):
|
|
return dictionary.get(key, default) |