# credit to Stack Overflow user in source link [key for key, value in mydict.items() if some_condition_on_value]