title: How to make a string-based multi-dimensional array in Python
body: <p>I'm working on practising some Python, and I've encountered an error from trying to apply my previous PHP understanding of multidimensional arrays into Python's arrays.</p>
  
  <pre><code>maze_path = [
      [
          "You are in a forest looking into the shrubbery while sitting on a plane. Do you decide to check it out?",
          "yes:Walking in.." = [
  
          ],
          "no:END_GAME" = []
      ]
  ]
  </code></pre>
  
  <p>This is the array that I'm trying to setup, an array with more than one resolutions that can be iterated through to move to the next areas depending on a set of instructions that are given to the iterator.</p>
  
  <p>I tried to execute my code and ran into the following error (was trying to see if syntax was legitimate):</p>
  
  <blockquote>
    <p>File "menu.py", line 159
        "yes:Walking in..": [
                          ^
    SyntaxError: invalid syntax</p>
  </blockquote>
  
  <p>I tried changing the <code>=</code> sign into <code>:</code>, <code>==</code> <strong>(comparison, worked but not as I expected...)</strong> and just nothing with it.</p>
  
  <p>What I am planning on doing with this is iterating on the first level of the array, something like so:</p>
  
  <pre><code>for instruction, resolution in maze_path:
    #// do some stuff with each of these informatants
    manage( instruction, resolution, maze_path )
  </code></pre>
  
  <p>Then from that I'll figure out some other issue to do with moving through the array.</p>
  
  <p><strong>The main question</strong>: Am I able to make string-based multidimensonal arrays in Python?</p>