While Loop in Python
September 11, 2020
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
- New Month November 30, 2024
- Solar Energy Project Day 40 November 30, 2024
- Solar Energy Project Day 39 November 29, 2024