[Python-checkins] bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234) (GH-22256)

Miss Islington (bot) webhook-mailer at python.org
Tue Sep 15 09:56:47 EDT 2020


https://github.com/python/cpython/commit/a0da90720d5330c53b8083272374ede1c7a1e33a
commit: a0da90720d5330c53b8083272374ede1c7a1e33a
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-09-15T09:56:43-04:00
summary:

bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234) (GH-22256)

Revise example of "continue" in the tutorial documentation
(cherry picked from commit 7bcc6456ad4704da9b287c8045768fa53961adc5)

Co-authored-by: Neeraj Samtani <neerajjsamtani at gmail.com>

Co-authored-by: Neeraj Samtani <neerajjsamtani at gmail.com>

files:
M Doc/tutorial/controlflow.rst

diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 547f4aec47b68..3af288a17b270 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -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:
 



More information about the Python-checkins mailing list