title: "TypeError: string indices must be integers" when trying to make 2D array in python
body: <p>I'm so kind of new to python (and coding) and I just want to create a board (for a console game) based on the player desire.</p>
  
  <p>Basically it's this...</p>
  
  <pre class="lang-python prettyprint-override"><code>import array 
  print("What size do you want the board?") 
  Boardsize = input()
  Tablero = array('b' [Boardsize, Boardsize])
  for w in Boardsize:
      for h in Boardsize:
          Boardsize(w)(h).append('.')
  print (Tablero)
  </code></pre>
  
  <p>At least that's my idea, but the compiler say:</p>
  
  <pre><code>Tablero = array('b'[Boardsize, Boardsize])
  TypeError: string indices must be integers
  </code></pre>