First time here? Check out the FAQ!
answered 2024-08-29 08:36:51 +0100
Well...
sage: cmds=('a=1 ; b=2;') sage: exec(cmds) sage: a 1 sage: b 2
BTW, you may try a, b = (1, 2);
a, b = (1, 2);
HTH,