There was an error while loading. Please reload this page.
1 parent c7399d0 commit 02a807eCopy full SHA for 02a807e
1 file changed
Doc/tutorial/introduction.rst
@@ -1,4 +1,4 @@
1
-.. _tut-informal:
+.. _tut-informal:
2
3
**********************************
4
An Informal Introduction to Python
@@ -220,9 +220,10 @@ the following:
220
221
Or, strings can be surrounded in a pair of matching triple-quotes: ``"""`` or
222
``'''``. End of lines do not need to be escaped when using triple-quotes, but
223
-they will be included in the string. ::
+they will be included in the string. So the following uses one escape to
224
+avoid an unwanted initial blank line. ::
225
- print("""
226
+ print("""\
227
Usage: thingy [OPTIONS]
228
-h Display this usage message
229
-H hostname Hostname to connect to
@@ -616,7 +617,7 @@ This example introduces several new features.
616
617
618
>>> a, b = 0, 1
619
>>> while b < 1000:
- ... print(b, end=' ')
620
+ ... print(b, end=',')
621
... a, b = b, a+b
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