When you want an array with n elements
list = [0 for i in range(n)]
Now we have n elements initialized with 0
Recommended Posts