From 8a0d58bb3dd029c168aedf97508bb56170b8fa66 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 12 Nov 2012 19:25:55 +0100 Subject: [PATCH] Use 2.x "print" syntax for this example. --- Doc/tutorial/controlflow.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index e0ee46bbe8b..aad26720119 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