Last active
November 15, 2018 19:12
-
-
Save KinoAR/6f195a703f4612ed68ed5cde09b68412 to your computer and use it in GitHub Desktop.
An example of a while loop in Python.
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
# Kino Rose | |
# Python While Loop example | |
# Initialize i | |
i = 0 | |
while i < 6: | |
# Increment i by 1 | |
i++ | |
print(i) # 1, 2, 3, 4, 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment