Skip to content

Instantly share code, notes, and snippets.

@rhettallain
Created February 18, 2014 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhettallain/9074240 to your computer and use it in GitHub Desktop.
Save rhettallain/9074240 to your computer and use it in GitHub Desktop.
example of a while loop
a=True
x=0
dx=0.1
while a:
x=x+dx
if x>=0.7:
a=False
print('hello')
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment