one-file-projects/fizzbuzz-oneline.py

1 line
135 B
Python
Raw Normal View History

2013-10-03 05:36:40 +02:00
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:]