one-file-projects/fizzbuzz-oneline.py
2013-10-03 05:36:40 +02:00

1 line
No EOL
135 B
Python

print reduce(lambda x,y:x+"\n"+y, map(lambda i: (((str(i),"Fizz")[i%3==0],"Buzz")[i%5==0],"FizzBuzz")[i%15==0], range(1,101) ), "")[1:]