Skip to content

Instantly share code, notes, and snippets.

@nkoneko
Created March 20, 2014 18:33
Show Gist options
  • Save nkoneko/9670737 to your computer and use it in GitHub Desktop.
Save nkoneko/9670737 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
if __name__=='__main__':
import itertools as _;import sys as __;
____=lambda ____,__,___:_.cycle(_.chain(_.repeat(___,____-1),[__]))
_____=lambda __,_:_ if _ else str(__)
print(' '.join(list(_.islice((_____(_,__(___(''))) for _,___,__ in _.izip(_.count(1),____(3,lambda _:_+'Fizz',lambda _:_),____(5,lambda _:_+'Bazz',lambda _:_))),int(__.argv[1])-1,int(__.argv[2])))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment