Skip to content

Instantly share code, notes, and snippets.

@tanakahisateru
Created October 20, 2010 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanakahisateru/635901 to your computer and use it in GitHub Desktop.
Save tanakahisateru/635901 to your computer and use it in GitHub Desktop.
Fizz Buzz expression
map(lambda n:'fizzbuzz' if n%15==0 else 'fizz' if n%3==0 else 'buzz' if n%5==0 else str(n), range(1, 101))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment