Skip to content

Commit 7bcc645

Browse files
bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234)
Revise example of "continue" in the tutorial documentation
1 parent 95a8a0e commit 7bcc645

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
@@ -210,15 +210,15 @@ iteration of the loop::
210210
... if num % 2 == 0:
211211
... print("Found an even number", num)
212212
... continue
213-
... print("Found a number", num)
213+
... print("Found an odd number", num)
214214
Found an even number 2
215-
Found a number 3
215+
Found an odd number 3
216216
Found an even number 4
217-
Found a number 5
217+
Found an odd number 5
218218
Found an even number 6
219-
Found a number 7
219+
Found an odd number 7
220220
Found an even number 8
221-
Found a number 9
221+
Found an odd number 9
222222

223223
.. _tut-pass:
224224

0 commit comments

Comments
 (0)