What's the difference between generating a value and returning a value?
cdalten at gmail.com
Mon Mar 23 23:12:19 CET 2009
Taken from the url....
"The built-in functions we have used, such as abs,
pow, and max, have produced results. Calling each of
these functions generates a value, which we usually assign to a
use as part of an expression.
biggest = max(3, 7, 2, 5)
x = abs(3 - 11) + 10
But so far, none of the functions we have written has returned a
In this chapter, we are going to write functions that return values,
we will call fruitful functions,"
So what's the difference between generating a value and returning a
More information about the Python-list