The wrong variable is checked and appended in this example code block.

This commit is contained in:
Mark Simpson
2012-04-03 00:05:24 +12:00
parent 1b082fd8d7
commit 60a206f20f
+2 -2
View File
@@ -219,8 +219,8 @@ operations on lists using a different concise syntax.
a = [3, 4, 5]
b = []
for i in a:
if a > 4:
b.append(a)
if i > 4:
b.append(i)
**Good**: