Skip to content

Instantly share code, notes, and snippets.

@tghw
Last active October 10, 2015 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tghw/3702360 to your computer and use it in GitHub Desktop.
Save tghw/3702360 to your computer and use it in GitHub Desktop.
Ugly Python FizzBuzz
f=lambda x,y=1,a='Fizz',b='Buzz':y and ' '.join(f(i+1,0) for i in range(x)) or x%3==x%5==0 and a+b or x%3==0 and a or x%5==0 and b or str(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment