Re:Fizzbuzz, Interviews, And Overthinking
by deadmansshoes on Friday October 05, 2012 @03:04AM
(#4615942)
It should be possible in a single line of Python..
And then:
Or for the second solution:
[ Parent
| on HN ]
A tweetable (140 character) single line of Python:
print '\n'.join((lambda x:(''.join(x) if x else str(i)))([w+'zz' for (n,w) in ((3,'Fi'),(5,'Bu'),(7,'Ba')) if i%n==0]) for i in range(1,100))