Mar-16-2019, 02:31 AM
(This post was last modified: Mar-16-2019, 03:15 PM by ichabod801.)
if you need to return two things, you return a tuple:
def add_mul(x, y): return x + y, x * ySo on lines 3 and 12 I would store what your are returning there in a variable, and return that variable along with the other values returned later.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures