title: How to create list and initialize only some of it's values in Python (in comparison to C++)
body: <p>I need to create an <code>List of size N</code> and then initialize only <code>N-1th</code> and <code>N-2th</code> elements only. Which means <strong>if the size of the list is 5</strong> then it should only contain <strong>elements in 3rd and 4th position</strong>.</p>
  <p>i know how to do it in <code>C++</code> but is there any way to implement it in <code>Python</code>?</p>
  <blockquote>
  <p>for example:  In C++</p>
  </blockquote>
  <pre><code>int *n = new int[5];
  n[3] = 20
  n[4] = 10
  
  //and if we print the output it will show some garbage values in index 0, 1, 2 and will print 20 10 which is the values we initailized
  </code></pre>
  <p><strong>How can i do it in python? or anything similar to this!</strong></p>