Skip to content

Instantly share code, notes, and snippets.

@ChanChar
Created December 5, 2014 03:29
Show Gist options
  • Save ChanChar/571167bcf3e544632e0b to your computer and use it in GitHub Desktop.
Save ChanChar/571167bcf3e544632e0b to your computer and use it in GitHub Desktop.
shaw33.1
i = 0
numbers = []
new_variable = int(raw_input("What is the number you want to go up to? >>> "))
while i < new_variable:
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