Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

all() python

#follow me on Grepper
#all() is a function to return True if all of the items  is True, if not all True, then it will return False.
myList=[True, True, True, True]
print(all(myList))
myList2=[True, True, True, False]
print(all(myList2))
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
4+4 =