Skip to content

Instantly share code, notes, and snippets.

@hansdg1
Last active September 23, 2016 23:35
Show Gist options
  • Save hansdg1/9b72b77c4bc3f09d9d7ff92abe3789d9 to your computer and use it in GitHub Desktop.
Save hansdg1/9b72b77c4bc3f09d9d7ff92abe3789d9 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
count = 0
while count < 9:
print 'The count is', count
count += 1 #remember this could be count = count + 1
## It prints:
# The count is 0
# The count is 1
# The count is 2
# The count is 3
# The count is 4
# The count is 5
# The count is 6
# The count is 7
# The count is 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment