Another While Loop
April 6, 2018
As the title says, just another while loop for practice.
i = 0
numbers = []
while i < 7:
print "The number at the top is now: %d" % i
numbers.append(i)
i = i + 1
print "Numbers are now", numbers
print "The number at the bottom is now: %d" % i
print "The numbers:"
for num in numbers:
print num
Recent Entries
- The World Before the Index April 1, 2026
- The Thinker and the Talker April 1, 2026
- Thirty-Three Million for a Suggestion Box April 1, 2026