how to pass string variable into a string python code example
Example: how to give a string value variable in python
foo = "bar"
exec(foo + " = 'something else'")
print bar
something else
foo = "bar"
exec(foo + " = 'something else'")
print bar
something else