ExampleEdit & Run
#Using the all() Function

print(all([1, 2, 3, 4, 5]))

print(all([0, 1, 2, 3, 4, 5]))
Output:
TrueFalse[Finished in 0.010862760012969375s]

The all() function checks whether  all elements in a given iterable have a boolean value of True.

The function takes one argument, an iterable object such as a list, set, tuple etc.

Syntax:
all(iterable)
iterable An iterable object containing the elements to be checked
Parameters:

The function returns a boolean value. True if all the values in the iterable have a boolean value of  True or the iterable is empty, False otherwise.

ExampleEdit & Run
print( all([]) )
print( all({}) )
print( all([1, 2, 3]) )
print( all([0, 1, 2, 3]) )
print( all(['Hello', 'Python', 'World']) )
print( all(('Hello', 'Python', 'World', '')) )
Output:
TrueTrueTrueFalseTrueFalse[Finished in 0.010405921144410968s]