SyntaxFix
Write A Post
Hire A Developer
Questions
a = {'a':1,'b':2,'c':3} {v:k for k, v in a.items()}[1]
or better
{k:v for k, v in a.items() if v == 1}