csharp
a = '123'
print (locals()['a'])
123
abcd = 'test'
print(globals()['abcd'])
test
a = '123'
print (locals()['a'])
123
abcd = 'test'
print(globals()['abcd'])
test