mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
fix no-op in tutorial
This commit is contained in:
parent
2b968d6187
commit
bfc644bdbe
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ A more verbose version of this snippet shows the flow explicitly::
|
|||
for i in [0, 1, 2]:
|
||||
for row in mat:
|
||||
print(row[i], end="")
|
||||
print
|
||||
print()
|
||||
|
||||
In real world, you should prefer builtin functions to complex flow statements.
|
||||
The :func:`zip` function would do a great job for this use case::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue