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