test ref test print locals ref

1
2
3
test = 1
ref='test'
print locals()[ref]