Python Built-in Function - any() | any()

Publicado em: 12 Maio 2020
no canal de: Parag Dhawan
228
9

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

Built-in Functions
![](buitinfunctions1.jpg)

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


Nesta página do site você pode assistir ao vídeo on-line Python Built-in Function - any() | any() duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Parag Dhawan 12 Maio 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 228 vezes e gostou 9 espectadores. Boa visualização!