diff options
author | Georg Brandl <georg@python.org> | 2012-11-12 18:25:55 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-11-12 18:25:55 (GMT) |
commit | 8a0d58bb3dd029c168aedf97508bb56170b8fa66 (patch) | |
tree | 3e20854b3fee5e8e640f26fd7433264fbf4ee154 /Doc/tutorial | |
parent | b704eab5993649f634e8367feb314dfacc95c6e3 (diff) | |
download | cpython-8a0d58bb3dd029c168aedf97508bb56170b8fa66.zip cpython-8a0d58bb3dd029c168aedf97508bb56170b8fa66.tar.gz cpython-8a0d58bb3dd029c168aedf97508bb56170b8fa66.tar.bz2 |
Use 2.x "print" syntax for this example.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index e0ee46b..aad2672 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -168,9 +168,9 @@ iteration of the loop:: >>> for num in range(2, 10): ... if num % 2 == 0: - ... print("Found an even number", num) + ... print "Found an even number", num ... continue - ... print("Found a number", num) + ... print "Found a number", num Found an even number 2 Found a number 3 Found an even number 4 @@ -180,6 +180,7 @@ iteration of the loop:: Found an even number 8 Found a number 9 + .. _tut-pass: :keyword:`pass` Statements |