Re: documentation / reference help

2011-01-25 Thread Benjamin Kaplan
On Jan 25, 2011 1:19 PM, "Craig Leffel" wrote: > > Where does it return the value to? > > What do I need to put in the calling function so that I can use that value? > I need a variable name to refer to. Shouldn't I have to define that variable > someplace? > Python functions are like mathematica

Re: documentation / reference help

2011-01-25 Thread Craig Leffel
Where does it return the value to? What do I need to put in the calling function so that I can use that value? I need a variable name to refer to. Shouldn't I have to define that variable someplace? "Littlefield, Tyler" wrote in message news:mailman.1103.1295811520.6505.python-l...@python.org...

Re: documentation / reference help

2011-01-24 Thread Peter Otten
Scott Meup wrote: > I'm trying tolearn Python. The documentation tells syntax, and other > things > about a command. But for too many commands, it doesn't tell what it does. > for instance, in VB the 'return' command tells the program what line to > execute after some event (usually an error).

Re: documentation / reference help

2011-01-23 Thread Terry Reedy
On 1/23/2011 1:41 PM, Scott Meup wrote: I'm trying tolearn Python. The documentation tells syntax, and other things about a command. But for too many commands, it doesn't tell what it does. for instance, in VB the 'return' command tells the program what line to execute after some event (usually

Re: documentation / reference help

2011-01-23 Thread Chris Rebert
On Sun, Jan 23, 2011 at 11:52 AM, CM wrote: > On Jan 23, 2:38 pm, "Littlefield, Tyler" wrote: >> The return value simply returns a value to the calling function, which >> the function can handle, however it wants. so: for example >> def add(a, b): >>    return (a+b) >> >> That simply returns the

Re: documentation / reference help

2011-01-23 Thread CM
On Jan 23, 2:38 pm, "Littlefield, Tyler" wrote: > The return value simply returns a value to the calling function, which > the function can handle, however it wants. so: for example > def add(a, b): >    return (a+b) > > That simply returns the value a+b, which you can use however you like, > like

Re: documentation / reference help

2011-01-23 Thread Emile van Sebille
On 1/23/2011 10:41 AM Scott Meup said... I'm trying tolearn Python. The documentation tells syntax, and other things about a command. But for too many commands, it doesn't tell what it does. for instance, in VB the 'return' command tells the program what line to execute after some event (usuall

Re: documentation / reference help

2011-01-23 Thread Littlefield, Tyler
The return value simply returns a value to the calling function, which the function can handle, however it wants. so: for example def add(a, b): return (a+b) That simply returns the value a+b, which you can use however you like, like so: i=add(2,3) will assign the return value to add. I rec