Commit 8a0d58bb authored by Georg Brandl's avatar Georg Brandl

Use 2.x "print" syntax for this example.

parent b704eab5
...@@ -168,9 +168,9 @@ iteration of the loop:: ...@@ -168,9 +168,9 @@ iteration of the loop::
>>> for num in range(2, 10): >>> for num in range(2, 10):
... if num % 2 == 0: ... if num % 2 == 0:
... print("Found an even number", num) ... print "Found an even number", num
... continue ... continue
... print("Found a number", num) ... print "Found a number", num
Found an even number 2 Found an even number 2
Found a number 3 Found a number 3
Found an even number 4 Found an even number 4
...@@ -180,6 +180,7 @@ iteration of the loop:: ...@@ -180,6 +180,7 @@ iteration of the loop::
Found an even number 8 Found an even number 8
Found a number 9 Found a number 9
.. _tut-pass: .. _tut-pass:
:keyword:`pass` Statements :keyword:`pass` Statements
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment