Python Tutorial 11 | any operator, all Operator | pythonSTACK

Publié le: 01 janvier 1970
sur la chaîne: Code with Yubraj
23
3

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


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Tutorial 11 | any operator, all Operator | pythonSTACK durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code with Yubraj 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 23 fois et il a aimé 3 téléspectateurs. Bon visionnage!