From 4f5008d04cf81ce5338732f6c191d71feb945c25 Mon Sep 17 00:00:00 2001 From: Neeraj Samtani Date: Mon, 14 Sep 2020 03:11:11 +0400 Subject: [PATCH 1/2] Update controlflow.rst Revise example of "continue" in the tutorial documentation --- Doc/tutorial/controlflow.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 5d24a19cfc0796..d56d548073b318 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -210,7 +210,7 @@ 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 even number 4 From fce76594c6ed5529435c29180c64e6c34af55afb Mon Sep 17 00:00:00 2001 From: Neeraj Samtani Date: Mon, 14 Sep 2020 11:53:44 +0400 Subject: [PATCH 2/2] bpo-41776: Fix output in example of "continue" in tutorial documentation --- Doc/tutorial/controlflow.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index d56d548073b318..b8aec2b04f13fb 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -212,13 +212,13 @@ iteration of the loop:: ... continue ... 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: