Fix list manipulation comments and for loop

This commit is contained in:
William Ting
2012-04-17 00:06:21 -10:00
parent ca9c711706
commit 6e2bd3e7cf
+3 -3
View File
@@ -215,12 +215,12 @@ operations on lists using a different concise syntax.
.. code-block:: python .. code-block:: python
# Filter elements less than 5 # Filter elements greater than 4
a = [3, 4, 5] a = [3, 4, 5]
b = [] b = []
for i in a: for i in a:
if a > 4: if i > 4:
b.append(a) b.append(i)
**Good**: **Good**: