I receive a dictionary as input, and want to return a list of keys for which the dictionary values are unique in the scope of that dictionary.
I will clarify with an exa
Use nested list comprehensions!
print [v[0] for v in dict([(v, [k for k in a.keys() if a[k] == v]) for v in set(a.values())]).values() if len(v) == 1]