Built-in Functions
any()
Syntax
Operation
User-defined any function
Examples
List
Tuples
Dictionaries
Sets
Code:--
Built-in Functions

any()
Syntax
any(iterable)
Operation
Return True if any element of the iterable is true.
If the iterable is empty, return False.
Userdefined any function
def userany(iterable):
for i in iterable:
if i :
return True
return False
Examples
List
a = []
userany(a)
a = [0, 11,22,33,0]
userany(a)
Tuples
b = ()
any(b)
b = (False, False, 0, 0)
any(b)
Dictionaries
c = {}
any(c)
c = {0:"parag",1:"Dhawan"}
any(c)
Sets
d = set()
any(d)
e = { False, False, 0,11}
any(e)
any("")
any("parag dhawan")
============================================================================= Link for Tutorial Series
Jupyter Notebook Tutorial Series:-
• How To Open Jupyter Notebook in Windows
Python Tutorial Series:-
• Introduction to Python | Python Applications
Python Assignments and Objective Questions:-
• Objective Questions Python - 1
Tech. Videos By Parag Dhawan • Template Matching Using OpenCV (Python) | ...
============================================================================= Feel free to connect and ask your queries:-
Linkedin:- / parag-dhawan
Youtube:- / paragdhawan
Facebook Page:- http://fb.me/dhawanparag
Instagram: - / paragdhawan
Twitter:- / dhawan_parag
GitHub:- https://github.com/paragdhawan/
Facebook Profile:- https://www.facebook.com/profile.php?...
============================================================================= Show your support by Subscribing to the channel:-
https://www.youtube.com/c/ParagDhawan... ============================================================================= Link of Next video:- • Built-in function in python - min, max, le...
=============================================================================
#ParagDhawan
#PythonCrashCourse
#Python
#PythonTutorialForBeginners
#PythonForDataScience
#PythonProgramming
#PythonProgrammingLanguage
#PythonTutorial
#PythonCode
#Python3
=============================================================================
Note: Watch the video at a speed of 1.5
On this page of the site you can watch the video online Python Built-in Function - any() | any() with a duration of hours minute second in good quality, which was uploaded by the user Parag Dhawan 12 May 2020, share the link with friends and acquaintances, this video has already been watched 228 times on youtube and it was liked by 9 viewers. Enjoy your viewing!