[Tutor] statements vs. expression and types

Payal payal-python at scriptkitchen.com
Sun Jun 27 18:57:52 CEST 2010


Hello,
Please forgive for such a silly questions. I have never taken a course on
computers so am rough with some of basic technical terminology.

a. I read in a book that "lambdas are expressions ... so they can go
where functions are not allowed". What are expressions and what are
statements? A simple example of both in Python will suffice.

b. I read on web that Python has in new releases done "unifications of
types and classes". I know what classes are, what are types in simple
language.

Again please excuse for simple questions and thanks a lot in advance.

With warm regards,
-Payal
-- 





More information about the Tutor mailing list