We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0502ad1 + 65c8a8c commit 8603dfeCopy full SHA for 8603dfe
docs/writing/structure.rst
@@ -811,7 +811,7 @@ The map function can be even faster than a list comprehension in some cases.
811
# create a concatenated string from 0 to 19 (e.g. "012..1819")
812
nums = ""
813
for n in range(20):
814
- nums += str(n) # slow and inefficient
+ nums += str(n) # slow and inefficient
815
print nums
816
817
**Good**
@@ -821,7 +821,7 @@ The map function can be even faster than a list comprehension in some cases.
821
822
nums = []
823
824
- nums.append(str(n))
+ nums.append(str(n))
825
print "".join(nums) # much more efficient
826
827
**Better**
0 commit comments