Say I had these variables defined
a=1
b="2"
c=2
d=2
e="2"
I need a way to get all of the variable names that could be paired with an object I specify. For example, if I specify "2", it should return ["b","e"] because those are the two variables with the value "2". If I specify the integer 2, it should give me ["c","d"]. Is there a way to do this? I am looking for a pythonic answer as well.