Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Counting in Python using lists
# Counting in Python using lists
# by Andrew Odendaal (
magic = 0x616f-0x414f
numbers = [
i = c = numbers[0]
while True:
print('%d%d' % (c, round(numbers[int(i)])))
i += 1
if i>len(numbers)-1:
i = 0
c += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.