>/ > 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?
<<attachment: kb1pkl.vcf>>
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor