Skip to content

Instantly share code, notes, and snippets.

@tjguk
Created June 12, 2015 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjguk/3489147959a644899f68 to your computer and use it in GitHub Desktop.
Save tjguk/3489147959a644899f68 to your computer and use it in GitHub Desktop.
import itertools
BLOCK_COLOURS = "purple", "lightgreen", "lightblue", "orange"
colours = itertools.cycle(BLOCK_COLOURS)
for n_block in range(8):
colour = next(colours)
print(colour)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment