Last active
April 22, 2017 14:26
-
-
Save ntcho/2f8005ea543ef9c4edcc159f134f7037 to your computer and use it in GitHub Desktop.
Python Loops
This file contains 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
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