python bracket

Olexandr Melnyk omelnyk at gmail.com
Sat Feb 3 00:54:11 EST 2007


By indentation:

def some_function():
  a = 10
  print a

print b # this statement doesn't belong to the function above

---------------------------------
Olexandr Melnyk,
http://omelnyk.net/

2007/2/3, fatwallet961 at yahoo.com <fatwallet961 at yahoo.com>:
>
> there is no bracket in python
>
> how can i know where a loop or a function ends?
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070203/bf3aa82b/attachment.html>


More information about the Python-list mailing list