Created
April 17, 2018 14:44
-
-
Save jaidevd/81b870dacae045faabba587b73185386 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 | |
from __future__ import print_function | |
for i in range(1, 10): | |
print(i) | |
if i % 2 == 0: | |
exit | |
print("Loop was never broken. Let's try another case...") | |
for i in range(1, 10): | |
print(i) | |
if i % 3 == 0: | |
print("About to exit.") | |
exit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment