News for hackers. Stuff that matters.
Re:Ask HN: Why is it that so many people fail fizzbuzz? by a_bonobo on Wednesday November 21, 2012 @11:27PM (#4817494)
For completion's sake, yes you can do that in Python, it's just slightly uglier (as far as I know) using

''.join(filter(None, [a, b]))

and

itertools.cycle([None, None, 'Fizz'])

itertools.cycle([None, None, None, None, 'Buzz'])

There are no comments on this comment yet.