Skip to content

Instantly share code, notes, and snippets.

@Foxboron
Last active December 23, 2015 13:39
Show Gist options
  • Save Foxboron/6643154 to your computer and use it in GitHub Desktop.
Save Foxboron/6643154 to your computer and use it in GitHub Desktop.
#Python2
import sys
f = lambda x: map(lambda i: sys.stdout.write(([str(i)+'\n',"Fizz\n"],["Buzz\n","FizzBuzz\n"])[not i % 3][not i % 5]), range(0,x)) and None
## Python3
f = lambda x: list(map(lambda i: print(([str(i),"Fizz"],["Buzz","FizzBuzz"])[not i % 3][not i % 5]), range(0,x))) and None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment