I have a number of declared variables at the start of a long script. A real mix of types. Is there anyway to do this sort of thing
# pseudo code
i = 1
b = "hello world"
for var in AllDeclaredVariables:
print (var.name, end='')
print type(var, end='')
print (var.value)
And get this
a<class 'int'>1
b<class 'str'>hello world