I’m looking for a good way to skip dictionaries that contain certain keys among multiple dictionaries that are different.
Right now I’m chaining .get()
methods on a dictionary object and continuing on whatever matches, which is working but its kinda messy.
I’m doing something like:
...
if my_dict.get('some_key', my_dict.get('other_key', my_dict.get('some_other_key'))):
continue