Skip to content

Instantly share code, notes, and snippets.

@jaidevd
Created April 17, 2018 14:44
Show Gist options
  • Save jaidevd/81b870dacae045faabba587b73185386 to your computer and use it in GitHub Desktop.
Save jaidevd/81b870dacae045faabba587b73185386 to your computer and use it in GitHub Desktop.
#! /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