I need to get the variable name instead of the variable value.
I have a situation like this:
Type1 = 1
Type2 = 2
fields = [Type1, Type2]
for field in fields:
   value = field.__name__ #or something like 
   print(value)
Expected result is
Type1 
Type2
Ty for helping
 
    