projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b704eab
)
Use 2.x "print" syntax for this example.
author
Georg Brandl
<georg@python.org>
Mon, 12 Nov 2012 18:25:55 +0000
(19:25 +0100)
committer
Georg Brandl
<georg@python.org>
Mon, 12 Nov 2012 18:25:55 +0000
(19:25 +0100)
Doc/tutorial/controlflow.rst
patch
|
blob
|
history
diff --git
a/Doc/tutorial/controlflow.rst
b/Doc/tutorial/controlflow.rst
index e0ee46bbe8bb618571b64110c5b7e0d0be3ee8d7..aad267201192aa667e0db4a42c1cd928ac9b1edb 100644
(file)
--- 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