Skip to content

Instantly share code, notes, and snippets.

@adaptives
Created September 27, 2011 09:49
Show Gist options
  • Select an option

  • Save adaptives/1244709 to your computer and use it in GitHub Desktop.

Select an option

Save adaptives/1244709 to your computer and use it in GitHub Desktop.
LPTHW Exercise 33
# LPTHW Exercise 33
i = 0
numbers = []
while i < 6:
print "At the top i is %d" % i
numbers.append(i)
i = i + 1
print "Numbers now: ", numbers
print "At the bottom i is %d" % i
print "The numbers: "
for num in numbers:
print num
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment