title: How to declare an array in python
body: <p>I want to assign values to different indices and not in a sequential manner(by using append), like we would do in a hash table. How to initialize the array of a given size?
  What I do:</p>
  
  <pre><code>a=[]
  for x in range(0,10000):
         a.append(0)
  </code></pre>
  
  <p>Is there a better way?
  Also, is there any function like memset() in c++?</p>