Skip to content

Instantly share code, notes, and snippets.

@shurru
Last active December 26, 2015 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shurru/7228237 to your computer and use it in GitHub Desktop.
Save shurru/7228237 to your computer and use it in GitHub Desktop.
numbers= []
def loopy(i):
while i<6:
print "at the top of i is %d" %i
numbers.append(i)
i = i+1
print "Numbers now", numbers
print "at the bottom of i is %d" %i
return numbers
nu= int(raw_input(">"))
numb= loopy(nu)
print "The numbers", numb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment