one-file-projects/fizzbuzz-oneline.py

1 line
131 B
Python
Raw Normal View History

2013-09-26 21:59:25 +02:00
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:]