While Loop in Python
September 11, 2020 · uneasy.in/9e1224a
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
Recent Entries
- Deep Think Crosses the Human Line February 13, 2026
- Swimwear Thinking Made City-Appropriate February 13, 2026
- The Thousand-Token Gambit February 13, 2026