Created
April 9, 2019 20:53
-
-
Save OpnSrcConstruction/4d221fbbec7e8c1ebfea6bb6fced598d to your computer and use it in GitHub Desktop.
Python example: while loopin #python #while #loop
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
''' | |
@author: kjlw99 | |
''' | |
number = 0 | |
while (number < 7): | |
print 'The number is:', number | |
number = number + 1 | |
print "Good bye!" | |
OUTPUT | |
The number is: 0 The number is: 1 The number is: 2 The number is: 3 The number is: 4 The number is: 5 The number is: 6 | |
Good bye! | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment