changeset 3:aa0dabb23aa9

created
author 127.0.0.1
date Thu, 07 Oct 2010 23:09:19 +0200
parents e355209f83f3
children 90bb7eeebf1b
files docs/Iterowanie
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/Iterowanie	Thu Oct 07 23:09:19 2010 +0200
@@ -0,0 +1,13 @@
+Źle:
+{{{#!python
+>>> a = ['a', 'b', 'c']
+>>> for i in xrange(len(a)):
+>>>     print a[i]
+}}}
+
+Dobrze:
+{{{#!python
+>>> a = ['a', 'b', 'c']
+>>> for item in a:
+>>>     print item
+}}}