(no title)
lazyfunctor | 12 years ago
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
lazyfunctor | 12 years ago
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
ggchappell|12 years ago
> 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.
unknown|12 years ago
[deleted]
unknown|12 years ago
[deleted]