[Tutor] Built In Functions

Dave Angel davea at davea.name
Tue Dec 17 23:30:00 CET 2013


On Wed, 18 Dec 2013 02:39:43 +1100, Steven D'Aprano 
<steve at pearwood.info> wrote:
>     if a > 0 and b > 0 and c > 0:
>     if all(x for x in (a, b, c):

Er, perhaps it should be:

if all (x> 0 for x in (a, b, c):

-- 
DaveA



More information about the Tutor mailing list