Dict Comprehension ?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Mon Oct 6 16:10:36 CEST 2008


Ernst-Ludwig Brust:
> Given 2 Number-Lists say l0 and l1,
> count the various positiv differences between the 2 lists
>...
> i wonder, if there is a way, to avoid the list dif

Instead of creating the list (array) dif, you can create a lazy
iterator. Then you can fed it to a set.

Bye,
bearophile



More information about the Python-list mailing list