create array with zeros python code example Example 1: python init array with zeros buckets = [0] * 100 Example 2: np.zero np.zeros((dimension_1, dimension_2))