Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1eef41

Browse files
committed
Close #12838: fix range() call.
1 parent 175eb99 commit e1eef41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/faq/programming.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ tick of the interpreter's mainloop using highly optimized C implementations.
171171
Thus to get the same effect as::
172172

173173
L2 = []
174-
for i in range[3]:
174+
for i in range(3):
175175
L2.append(L1[i])
176176

177177
it is much shorter and far faster to use ::

0 commit comments

Comments
 (0)