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
On this page of the site you can watch the video online Python Tutorial 11 | any operator, all Operator | pythonSTACK with a duration of hours minute second in good quality, which was uploaded by the user Code with Yubraj 01 January 1970, share the link with friends and acquaintances, this video has already been watched 23 times on youtube and it was liked by 3 viewers. Enjoy your viewing!