Created
March 31, 2017 02:59
-
-
Save ktechmidas/a718fd36803c48da23cebb3214b7599f 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
l = ['m4','r2','r3'] | |
n = 7 | |
print itertools.islice(itertools.cycle(l), n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment