Ask Your Question

Revision history [back]

click to hide/show revision 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,