advanced listcomprehenions?

Mark Wooding mdw at distorted.org.uk
Thu Jun 19 17:39:05 CEST 2008


Duncan Booth <duncan.booth at invalid.invalid> wrote:

> [['Fizz', 'Buzz', 'FizzBuzz', str(i)][62/(pow(i, 4, 15) + 1)%4] for i in 
> xrange(1, 101)]

Cute! ;-)

-- [mdw]



More information about the Python-list mailing list