上QQ阅读APP看书,第一时间看更新
The all and any functions
all and any are self-explanatory as well. Simply put, they are extended and and or operators, and work with multiple values at once:
all([False, True, True])
>>> False
any([False, True, False])
>>> True
all and any are self-explanatory as well. Simply put, they are extended and and or operators, and work with multiple values at once:
all([False, True, True])
>>> False
any([False, True, False])
>>> True