demo_ref_any_set.py:
myset = {0, 1, 0} x = any(myset) print(x) # Returns True because the second item is True
C:\Users\My Name>python demo_any_set.py
True