On 2008-05-12, Paul Hankin <[EMAIL PROTECTED]> wrote:

> for i in xrange(1, 101):
>     print 'Fizz'*(i%3<1)+'Buzz'*(i%5<1) or i

Doh!  It never occured to me that 'string' * 0 == ''.

-- 
Grant Edwards                   grante             Yow! An air of FRENCH FRIES
                                  at               permeates my nostrils!!
                               visi.com            
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to