find python dictionary based on condition code example
Example: python dictionary get keys with condition on value
# credit to Stack Overflow user in source link
[key for key, value in mydict.items() if some_condition_on_value]
# credit to Stack Overflow user in source link
[key for key, value in mydict.items() if some_condition_on_value]