Skip to content

Instantly share code, notes, and snippets.

@feiz
Created August 9, 2012 10:58
Show Gist options
  • Save feiz/3303267 to your computer and use it in GitHub Desktop.
Save feiz/3303267 to your computer and use it in GitHub Desktop.
無限fizzbuzz
from itertools import *
for x in izip(cycle(['', '', 'fizz']), cycle(['', '', '', '', 'buzz']), count(1)):
print x[0] + x[1] or x[2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment