The use of :

Erik Max Francis max at alcyone.com
Fri Nov 26 05:15:37 CET 2004


Chang LI wrote:

> Some statements use : in the tail such as while x > 0: and def func():
> What is the meaning and the usage of : in Python?

It means something else follows in an indented block as part of the same 
statement.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   To perceive is to suffer.
   -- Aristotle



More information about the Python-list mailing list