Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save OpnSrcConstruction/4d221fbbec7e8c1ebfea6bb6fced598d to your computer and use it in GitHub Desktop.
Save OpnSrcConstruction/4d221fbbec7e8c1ebfea6bb6fced598d to your computer and use it in GitHub Desktop.
Python example: while loopin #python #while #loop
'''
@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