# While Loop in Python

```
n = 0
numbers = []
while n < 6:
print "At the top, n is %d" % n
numbers.append(n)
n = n + 1
print "Numbers now: ", numbers
print "At the bottom, n is %d" % n
print "The numbers: "
for num in numbers:
print num
```

```
n = 0
numbers = []
while n < 6:
print "At the top, n is %d" % n
numbers.append(n)
n = n + 1
print "Numbers now: ", numbers
print "At the bottom, n is %d" % n
print "The numbers: "
for num in numbers:
print num
```