Ask Your Question

Revision history [back]

I am not sure about your request, does the following solve your issue ?

sage: def mul(a,b): ....: return a*b sage: a = mul(1,2); print('a = {}'.format(a)) sage: b = mul(1,3); print('b = {}'.format(b)) sage: c = mul(1,4); print('c = {}'.format(c)) a = 2 b = 3 c = 4

I am not sure about your request, does the following solve your issue ?

sage: def mul(a,b):
....:    return a*b
sage: a = mul(1,2); print('a = {}'.format(a))
sage: b = mul(1,3); print('b = {}'.format(b))
sage: c = mul(1,4); print('c = {}'.format(c))
a = 2
b = 3
c = 4

4