Skip to content

Commit

Permalink
Merge pull request #168 from npenzin/patch-1
Browse files Browse the repository at this point in the history
Update for_-_else.rst
  • Loading branch information
yasoob committed Jun 4, 2018
2 parents f003b20 + dc6b3fb commit 0e212de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion for_-_else.rst
Original file line number Diff line number Diff line change
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 0e212de

Please sign in to comment.