human
How to find duplicate elements in array using for loop in Python?
assistant
Here is some code to get all the keys from dictionary `y` whose value is `1`

[i for i in y if y[i] == 1]

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