Skip to content

Instantly share code, notes, and snippets.

@seabre
Created September 16, 2011 17:35
Show Gist options
  • Save seabre/1222638 to your computer and use it in GitHub Desktop.
Save seabre/1222638 to your computer and use it in GitHub Desktop.
Extremely Obnoxious FizzBuzz
#Originally from: http://codepad.org/9Gl9VQ0u
#Extremely obnoxious Python solution to FizzBuzz
#http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html
import sys
map(lambda i: sys.stdout.write("FizzBuzz\n") if i%15==0 else (sys.stdout.write("Fizz\n") if i%3==0 else (sys.stdout.write("Buzz\n") if i%5==0 else sys.stdout.write(str(i)+"\n"))), range(1,101))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment