[Tutor] Built In Functions
Steven D'Aprano
steve at pearwood.info
Tue Dec 17 23:32:03 CET 2013
On Tue, Dec 17, 2013 at 05:30:00PM -0500, Dave Angel wrote:
> 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):
Oops, yes, thanks for the correction.
Er, I mean, yes, you have found my deliberate mistake and passed the
test!
*wink*
--
Steven
More information about the Tutor
mailing list