Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
any and all in python

#any #all #python
Tech C**P
any and all in python #any #all #python
Sample code:

any([False, True, True, True, False])
True
any([False, True, True, False, False])
True
all([True, True, False, True, False])
False
all([True, True, True, True, True])
True
any([False, False, False, False, False])
False

#python #any #all
The table provides a list of useful aggregation functions available in NumPy

#numpy #aggregation #sum #prod #mean #std #min #max #any #all