Re: [Tutor] stumped by what looks like recursive list comprehension

2013-05-05 Thread Zachary Ware
On Sun, May 5, 2013 at 11:56 AM, Jim Mooney wrote: > I looked up "list comprehension" after the last explanation and it's > really cool. But the example below stumps me. I understand the second > part, "primes =" but the first part, "noprimes =" baffles me since it > swaps i and j back and forth i

Re: [Tutor] stumped by what looks like recursive list comprehension

2013-05-05 Thread Steven D'Aprano
On 06/05/13 02:56, Jim Mooney wrote: I looked up "list comprehension" after the last explanation and it's really cool. But the example below stumps me. I understand the second part, "primes =" but the first part, "noprimes =" baffles me since it swaps i and j back and forth in what looks like a c

[Tutor] stumped by what looks like recursive list comprehension

2013-05-05 Thread Jim Mooney
I looked up "list comprehension" after the last explanation and it's really cool. But the example below stumps me. I understand the second part, "primes =" but the first part, "noprimes =" baffles me since it swaps i and j back and forth in what looks like a circle ;') Also, the other examples I l