Created
June 12, 2015 11:55
-
-
Save tjguk/3489147959a644899f68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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