Introduction to Loops
March 12, 2019
A simple script for displaying how loops work.
i = 0
numbers = []
while i < 8:
print "At the top i is now %d" % i
numbers.append(i)
i = i + 1
print "Numbers now:", numbers
print "Number at the bottom is now: %d" % i
print "The numbers:"
for num in numbers:
print num
Recent Entries
- Unarchived Memories December 17, 2025
- Fixing CloudFront HTTP/2 Configuration December 15, 2025
- Packets to a Silent Modem December 14, 2025