Here's mine:
['Fizz' * (not bool(i % 3)) + 'Buzz' * (not bool(i % 5)) for i in xrange(1,101) if i % 3 == 0 or i % 5==0]
EDIT: I hate lambdas. Also I'm not saying the above is pretty or a good idea, but I had some fun.
['Fizz' * (not bool(i % 3)) + 'Buzz' * (not bool(i % 5)) for i in xrange(1,101) if i % 3 == 0 or i % 5==0]
EDIT: I hate lambdas. Also I'm not saying the above is pretty or a good idea, but I had some fun.
from itertools import cycle , izip
[(f + b or x) for f, b, x in izip(cycle([''] * 2 + ['Fizz']), cycle([''] * 4 + ['Buzz']), range(1, 100))]
Edit: not sure how to post code in comments. e.g. * is lost
> Edit: not sure how to post code in comments. e.g. * is lost
Put a couple of blanks before each line. This displays it in a monospace font, too.