| 1 | initial version |
Well...
sage: cmds=('a=1 ; b=2;')
sage: exec(cmds)
sage: a
1
sage: b
2
BTW, you may try a, b = (1, 2);
HTH,
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.