Result Size: 625 x 571
demo_ref_any_dict.py:
x
 
mydict = {0 : "Apple", 1 : "Orange"}
x = any(mydict)
print(x)
# Returns True because the second key is True.
# For dictionaries the any() function checks the keys, not the values.
C:\Users\My Name>python demo_any_dict.py
True