Hacker News new | ask | show | jobs
by bradmwalker 3428 days ago
Python https://gist.github.com/bradmwalker/b300f36e9427f729b458
1 comments

I like this approach. The only thing I would criticize is that it uses '' as a substitute for None.

So something like

    fizzes, buzzes, empties = str_cycle('Fizz', 3), str_cycle('Buzz', 5), str_cycle('', 7)
wouldn't work since it would print 7 instead of the empty string