Skip to content

Instantly share code, notes, and snippets.

@jerem
Created November 8, 2009 02:40
Show Gist options
  • Save jerem/229058 to your computer and use it in GitHub Desktop.
Save jerem/229058 to your computer and use it in GitHub Desktop.
letters = ['A', 'B', 'C']
nb_letters = len(letters)
total = 100
step = total / nb_letters
index = 0
results = []
for i in range(1, total + 1):
if index == nb_letters:
index -= 1
results.append(letters[index])
if i % step == 0:
index += 1
print results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment