8000 bpo-41776: Revise example of "continue" in the tutorial documentation… · python/cpython@0cc037f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cc037f

Browse files
bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234) (GH-22255)
Revise example of "continue" in the tutorial documentation (cherry picked from commit 7bcc645) Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com> Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>
1 parent b502c76 commit 0cc037f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,15 @@ iteration of the loop::
207207
... if num % 2 == 0:
208208
... print("Found an even number", num)
209209
... continue
210-
... print("Found a number", num)
210+
... print("Found an odd number", num)
211211
Found an even number 2
212-
Found a number 3
212+
Found an odd number 3
213213
Found an even number 4
214-
Found a number 5
214+
Found an odd number 5
215215
Found an even number 6
216-
Found a number 7
216+
Found an odd number 7
217217
Found an even number 8
218-
Found a number 9
218+
Found an odd number 9
219219

220220
.. _tut-pass:
221221

0 commit comments

Comments
 (0)
0