title: Can you create traditional fixed length and type arrays in Python?
body: <p>I am teaching the A level syllabus by the Cambridge exam board. One typical question on the practical paper is this:</p>
  
  <blockquote>
    <p>In a programming language of your choice, declare an array of ten integers and then initializes it.</p>
  </blockquote>
  
  <p>I have this:</p>
  
  <pre><code>myArray = []        #create the array
  
  for i in range(10): # initializes to 0
      myArray.append(0)
  </code></pre>
  
  <p>I believe this is what most people would do in Python? However, unlike Pascal etc it does not strictly answer the question as the lists in Python are essentially dynamic arrays with the added problem of not restricting the data type of each element. Can I declare a specific size array and type  like in Pascal, instead of an empty dynamic list, without any type of loop and restricts the type of the array?</p>
  
  <p>Something like (pseudo code):</p>
  
  <pre><code>myArray[10] : integer
  </code></pre>
  
  <p>This is a none commercial question but an educational one.</p>