#22170: avoid printing newlines twice in tutorial example.

This commit is contained in:
Ezio Melotti 2014-08-08 17:23:32 +03:00
parent 41ad77c697
commit 79a1ffde9b
1 changed files with 1 additions and 1 deletions

View File

@ -802,7 +802,7 @@ using a :keyword:`for` statement::
for char in "123":
print(char)
for line in open("myfile.txt"):
print(line)
print(line, end='')
This style of access is clear, concise, and convenient. The use of iterators
pervades and unifies Python. Behind the scenes, the :keyword:`for` statement