Human: How to get a variable name as a string in Python? Assistant: 
Here is some code to get a dict of variable names `['some', 'list', 'of', 'vars']` as a string and their values

dict((name, eval(name)) for name in ['some', 'list', 'of', 'vars'])

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.