title: How to create a list within a list that could be accessed via keyword
body: <p>I want to recreate the functionality I use a lot in lua programming, with python. I will demonstrate the lua code and explain what it does, as I do not know the official terminology of this programming behaviour.</p>
  
  <p>In lua programming, you could write something like this:</p>
  
  <pre><code>luaTABLE = {
      ["green"] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 },
      ["blue"] = { 100, 101, 102, 103 }
  }
  </code></pre>
  
  <p>This means that I have created a table (in python it would be a list) which has 2 subtables: "green" and "blue" and when accessing it I could say:</p>
  
  <pre><code>print(luaTABLE["green"][10])
  &gt;&gt; 10
  </code></pre>
  
  <p>meaning, I am accessing table's subtable's element at possition 10</p>
  
  <p>Now, is it possible to recreate this behaviour in Python, so that I could get something like:</p>
  
  <pre><code>pythonLIST = [
      ["green"] = [],
      ["blue"] = []
  ]
  </code></pre>
  
  <p>So that I could say something like:</p>
  
  <pre><code>pythonLIST["green"].append("some text for example")
  
  for element in pythonLIST["green"]:
      print(element)
  &gt;&gt;&gt; 'some text for example'
  </code></pre>