how to assign value in string in 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