The use of :

Dave Anderson python at
Sat Nov 27 04:23:07 CET 2004

this is answered in the python faq:

> The colon is required primarily to enhance readability

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?

More information about the Python-list mailing list