SyntaxFix
Write A Post
Hire A Developer
Questions
If the fallback keys are not too many you can do something like this
value = my_dict.get('first_key') or my_dict.get('second_key')