Skip to content

Instantly share code, notes, and snippets.

@keitaoouchi
Created April 3, 2012 08:58
Show Gist options
  • Save keitaoouchi/2290548 to your computer and use it in GitHub Desktop.
Save keitaoouchi/2290548 to your computer and use it in GitHub Desktop.
fizuubuzz without if/else clause
fizzbuzz = lambda i: ("fizz" * (not i % 3) + "buzz" * (not i % 5)) or str(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment