Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python all() function

boolean_list = ['True', 'True', 'True']

# check if all elements are true
result = all(boolean_list)
print(result)

# Output: True
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #Python #function
ADD COMMENT
Topic
Name
5+6 =