How about:
>>> any(isinstance(e, int) and e > 0 for e in [1,2,'joe'])
True
It also works with all()
of course:
>>> all(isinstance(e, int) and e > 0 for e in [1,2,'joe'])
False
How about:
>>> any(isinstance(e, int) and e > 0 for e in [1,2,'joe'])
True
It also works with all()
of course:
>>> all(isinstance(e, int) and e > 0 for e in [1,2,'joe'])
False