Just a quick question regarding the purpose of 'return', particularly within a function and in general.
in 12. - Lists and Function: 6 - More Than One Argument, I defined the following function:
m = 5 n = 13 # Add add_function here! def add_function(x,y): x + y print add_function(m, n)
NOT including the 'return' functions lends to the following error:
"Oops, try again. add_function(11, 0) returned None, did you remember to return the result?"
Is this because the program interpreter cannot use the result of any operation unless you specify for the program to 'return' it? I'm not 100% sure what the 'return' adds, other than reading that 'return' allows the program to actually use the results obtained (presumably in future operations coded into the program?)