In python3, I would like to do the following simple thing: given any variable, get its name as a string. That is, I would like some function, such that when the following code is run:
a = 0
b = a.someFunction()
print(b)
The output is:
'a'
Does python3 have this capability?