>>> array = np.zeros((10,12,42,53)) >>> list(set(array.flat)) [0.0]

Read more of this post