summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorTerry Reedy <tjreedy@udel.edu>2010-11-12 04:22:22 (GMT)
committerTerry Reedy <tjreedy@udel.edu>2010-11-12 04:22:22 (GMT)
commit02a807ebefd1ee2a638fcb22287938a76dfec0bb (patch)
treeab98c0219ae4b33ecfc312b87eb0337c34be6de3 /Doc/tutorial
parentc7399d0a0faf82e2acf8dc15178364b5b8a5d8df (diff)
downloadcpython-02a807ebefd1ee2a638fcb22287938a76dfec0bb.zip
cpython-02a807ebefd1ee2a638fcb22287938a76dfec0bb.tar.gz
cpython-02a807ebefd1ee2a638fcb22287938a76dfec0bb.tar.bz2
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/introduction.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst
index 2d5da48..44519da 100644
--- a/Doc/tutorial/introduction.rst
+++ b/Doc/tutorial/introduction.rst
@@ -1,4 +1,4 @@
-.. _tut-informal:
+.. _tut-informal:
**********************************
An Informal Introduction to Python
@@ -220,9 +220,10 @@ the following:
Or, strings can be surrounded in a pair of matching triple-quotes: ``"""`` or
``'''``. End of lines do not need to be escaped when using triple-quotes, but
-they will be included in the string. ::
+they will be included in the string. So the following uses one escape to
+avoid an unwanted initial blank line. ::
- print("""
+ print("""\
Usage: thingy [OPTIONS]
-h Display this usage message
-H hostname Hostname to connect to
@@ -616,7 +617,7 @@ This example introduces several new features.
>>> a, b = 0, 1
>>> while b < 1000:
- ... print(b, end=' ')
+ ... print(b, end=',')
... a, b = b, a+b
...
- 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
+ 1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,