Update structure.rst - fix indentation bug

This commit is contained in:
Josh
2017-11-13 16:18:22 -08:00
committed by GitHub
parent 0502ad112c
commit 65c8a8ccd7
+2 -2
View File
@@ -811,7 +811,7 @@ The map function can be even faster than a list comprehension in some cases.
# create a concatenated string from 0 to 19 (e.g. "012..1819")
nums = ""
for n in range(20):
nums += str(n) # slow and inefficient
nums += str(n) # slow and inefficient
print nums
**Good**
@@ -821,7 +821,7 @@ The map function can be even faster than a list comprehension in some cases.
# create a concatenated string from 0 to 19 (e.g. "012..1819")
nums = []
for n in range(20):
nums.append(str(n))
nums.append(str(n))
print "".join(nums) # much more efficient
**Better**