]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234)
authorNeeraj Samtani <neerajjsamtani@gmail.com>
Tue, 15 Sep 2020 13:39:29 +0000 (17:39 +0400)
committerGitHub <noreply@github.com>
Tue, 15 Sep 2020 13:39:29 +0000 (09:39 -0400)
Revise example of "continue" in the tutorial documentation

Doc/tutorial/controlflow.rst

index 5d24a19cfc0796726952bc9b9a938a8f6d534020..b8aec2b04f13fba854d49e3584401c6725dcfc2e 100644 (file)
@@ -210,15 +210,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: