SyntaxFix
Write A Post
Hire A Developer
Questions
You can use exec for that:
exec
>>> foo = "bar" >>> exec(foo + " = 'something else'") >>> print bar something else >>>