human
get key by value in dictionary with same value in python?
assistant
Here is some code to get keys from a dictionary 'd' where the value is '1'.

print([key for key, value in list(d.items()) if value == 1])

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.