[Tutor] eazy python question involving functions and parameters

Corey Richardson kb1pkl at aim.com
Mon Sep 21 21:03:43 CEST 2009


another thing from the OP that no one has addressed yet is what *this* 
means:

 >/ > Write an expression (not a statement!)
/
to the veterans, we don't have to think twice, but this may not be
obvious to a beginner. basically, an expression is something like 4 *
5, foo(), [x for x in range(5)], etc. that evaluates to *some* Python
object, like a number, instance, or a list, etc. this also includes
function (calls) because it is associated with the single return value
that comes back from every call.

in contrast, a statement is something that has no intrinsic value (nor
associated Python object), such as print, pass, continue, or any
keywords like those.

hope this helps too!
-- wesley

                Umm.....you just completely confused me. What does it do?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kb1pkl.vcf
Type: text/x-vcard
Size: 55 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20090921/f4faf06c/attachment.vcf>


More information about the Tutor mailing list