Set variable from variable?

Jinja2 has a 'set' keyword for this purpose, as well as if/else directives.