| 1 | initial version |
You can use any of all as follows:
sage: L = [1,2,3,4,5]
sage: all(x < 10 for x in L)
True
sage: all(x < 3 for x in L)
False
sage: any(x < 3 for x in L)
Thue
| 2 | No.2 Revision |
You can use any of all as follows:
sage: L = [1,2,3,4,5]
sage: all(x < 10 for x in L)
True
sage: all(x < 3 for x in L)
False
sage: any(x < 3 for x in L)
Thue
True
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.