Skip to content

Commit

Permalink
Update for_-_else.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Penzin committed Jun 4, 2018
1 parent f003b20 commit dc6b3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion for_-_else.rst
Expand Up @@ -34,7 +34,7 @@ The common construct is to run a loop and search for an item. If the
item is found, we break out of the loop using the ``break`` statement. There are two
scenarios in which the loop may end. The first one is when the item is
found and ``break`` is encountered. The second scenario is that the loop
ends without encountering a ``break` statement. Now we may want to know which one of these is the reason for a
ends without encountering a ``break`` statement. Now we may want to know which one of these is the reason for a
loop's completion. One method is to set a flag and then check it once the
loop ends. Another is to use the ``else`` clause.

Expand Down

0 comments on commit dc6b3fb

Please sign in to comment.