one-file-projects/fizzbuzz-oneline.py
2013-09-26 21:59:25 +02:00

1 line
No EOL
131 B
Python

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