any / all operator is used for Successive AND/OR
any:
Returns true if any of the items is True.
It returns False if empty or all are false.
Any can be thought of as a sequence of OR operations on the provided iterables.
It short circuit the execution i.e. stop the execution as soon as the result is known.
Syntax : any(list of iterables)
all
Returns true if all of the items are True (or if the iterable is empty).
All can be thought of as a sequence of AND operations on the provided iterables.
It also short circuit the execution i.e. stop the execution as soon as the result is known.
Syntax : all(list of iterables)
Please like , comment and Subscribe.
#PythonforBeginners #PythonBasic #pythonSTACK #anyalloperator
#anyoperator #alloperator #OperatorInPython
En esta página del sitio puede ver el video en línea Python Tutorial 11 | any operator, all Operator | pythonSTACK de Duración hora minuto segunda en buena calidad , que subió el usuario Code with Yubraj 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 23 veces y le gustó 3 a los espectadores. Disfruta viendo!