On Mar 24, 3:10 pm, John Yeung gallium.arsen...@gmail.com wrote:
In my opinion, it's especially poor form to use the term
generate in that context when the language you are using to explain
these concepts has very specific things called generators.
In its defense, I'm pretty sure 'How to Think
.
biggest = max(3, 7, 2, 5)
x = abs(3 - 11) + 10
But so far, none of the functions we have written has returned a
value.
In this chapter, we are going to write functions that return values,
which
we will call fruitful functions,
So what's the difference between generating a value and returning a
value
On Mon, Mar 23, 2009 at 03:12:19PM -0700, grocery_stocker wrote:
So what's the difference between generating a value and returning a
value?
Well when you return, you would use the return keyword, I would
imagine... I guess generating could mean many things, you can generate a
value by operating
,
So what's the difference between generating a value and returning a
value?
--
http://mail.python.org/mailman/listinfo/python-list
On 3/23/2009 6:12 PM grocery_stocker apparently wrote:
http://openbookproject.net/thinkCSpy/ch05.xhtml#index15
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
variable or
use
On Mar 23, 6:12 pm, grocery_stocker cdal...@gmail.com wrote:
So what's the difference between generating a value and returning a
value?
I agree with Alan's first thought, which is that no distinction was
intended. In my opinion, it's especially poor form to use the term
generate