python init list with zeros code example Example 1: python init array with zeros buckets = [0] * 100 Example 2: make a zero list python listofzeros = [0] * n