Skip to content

Instantly share code, notes, and snippets.

@ntcho
Last active April 22, 2017 14:26
Show Gist options
  • Save ntcho/2f8005ea543ef9c4edcc159f134f7037 to your computer and use it in GitHub Desktop.
Save ntcho/2f8005ea543ef9c4edcc159f134f7037 to your computer and use it in GitHub Desktop.
Python Loops
for i in range(0, 6):
print i
j = 0
while j < 5:
print j
j += 1
k = 0
while True:
print k
k += 1
if k >= 5:
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment