Pythonを使ってFizzBuzz、乗算(*)除算(/)余算(%)なしの一行で

mapとかreduceを覚えたので前回の書き直し

今回

[(s[0]!='F' and s.find('B')+1) and s[-4:] or s for s in reduce(lambda x,y: x+[(x[-3][0]=='F' and 'Fizz' or str(y+6))+(x[-5].find('B')+1 and 'Buzz' or ''),], xrange(100), ['1', '2', 'Fizz', '4', 'Buzz'])]

前回

[b==c=="" and a+1 or b+c for a,b,c in zip(xrange(100),["","","Fizz"]*(100/3),["","","","","Buzz"]*(100/5))]