]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 15 Sep 2020 13:56:43 +0000 (06:56 -0700)
committerGitHub <noreply@github.com>
Tue, 15 Sep 2020 13:56:43 +0000 (09:56 -0400)
Revise example of "continue" in the tutorial documentation
(cherry picked from commit 7bcc6456ad4704da9b287c8045768fa53961adc5)

Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>
Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>
Doc/tutorial/controlflow.rst

index 547f4aec47b68ec9b4b42bd8d5918eb9fa375ac1..3af288a17b270d93fc27421e7ec3d990288bd81a 100644 (file)
@@ -207,15 +207,15 @@ iteration of the loop::
     ...     if num % 2 == 0:
     ...         print("Found an even number", num)
     ...         continue
-    ...     print("Found a number", num)
+    ...     print("Found an odd number", num)
     Found an even number 2
-    Found a number 3
+    Found an odd number 3
     Found an even number 4
-    Found a number 5
+    Found an odd number 5
     Found an even number 6
-    Found a number 7
+    Found an odd number 7
     Found an even number 8
-    Found a number 9
+    Found an odd number 9
 
 .. _tut-pass: