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

Skip to content

Commit b89e4fc

Browse files
committed
Backport rev86422 for issue 10304 from py3k to 31-maint
1 parent f959b7f commit b89e4fc

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/tutorial/introduction.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _tut-informal:
1+
.. _tut-informal:
22

33
**********************************
44
An Informal Introduction to Python
@@ -220,9 +220,10 @@ the following:
220220
221221
Or, strings can be surrounded in a pair of matching triple-quotes: ``"""`` or
222222
``'''``. End of lines do not need to be escaped when using triple-quotes, but
223-
they will be included in the string. ::
223+
they will be included in the string. So the following uses one escape to
224+
avoid an unwanted initial blank line. ::
224225

225-
print("""
226+
print("""\
226227
Usage: thingy [OPTIONS]
227228
-h Display this usage message
228229
-H hostname Hostname to connect to
@@ -610,7 +611,7 @@ This example introduces several new features.
610611

611612
>>> a, b = 0, 1
612613
>>> while b < 1000:
613-
... print(b, end=' ')
614+
... print(b, end=',')
614615
... a, b = b, a+b
615616
...
616-
1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
617+
1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,

0 commit comments

Comments
 (0)