What is the purpose of the colon before a block in Python?

Posted by Joshua Swink on Stack Overflow See other posts from Stack Overflow or by Joshua Swink
Published on 2008-10-18T21:18:46Z Indexed on 2010/06/15 13:22 UTC
Read the original article Hit count: 334

Filed under:
|

What is the purpose of the colon before a block in Python?

Example:

if n == 0:
    print "The end"

© Stack Overflow or respective owner

Related posts about python

Related posts about syntax