demo_ref_all2.py:
mylist = [0, 1, 1] x = all(mylist) print(x) # Returns False because 0 is the same as False
C:\Users\My Name>python demo_all2.py
False