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

Skip to content

Commit 02a807e

Browse files
committed
1 parent c7399d0 commit 02a807e

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
@@ -616,7 +617,7 @@ This example introduces several new features.
616617

617618
>>> a, b = 0, 1
618619
>>> while b < 1000:
619-
... print(b, end=' ')
620+
... print(b, end=',')
620621
... a, b = b, a+b
621622
...
622-
1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
623+
1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,

0 commit comments

Comments
 (0)