title: Python list set value at index if index does not exist
body: <p>Is there a way, lib, or something in python that I can set value in list at an index that does not exist?
  Something like runtime index creation at list:</p>
  
  <pre><code>l = []
  l[3] = 'foo'
  # [None, None, None, 'foo']
  </code></pre>
  
  <p>And more further, with multi dimensional lists:</p>
  
  <pre><code>l = []
  l[0][2] = 'bar'
  # [[None, None, 'bar']]
  </code></pre>
  
  <p>Or with an existing one:</p>
  
  <pre><code>l = [['xx']]
  l[0][1] = 'yy'
  # [['xx', 'yy']]
  </code></pre>