title: Push back function in python
body: <pre><code>   for (int i=1; i&lt;n+1; i++) {
          vector&lt;String&gt; temp;
          folder = pathName + to_string(i) + "/*.jpg";
          glob(folder, temp);
          filenames.push_back(temp);
      }
  </code></pre>
  
  <p>i want to write this in python. i have managed to do the below code but im struggling with the pushback function. </p>
  
  <pre><code>for i in range(1,n):
      print(i)
      folder = path + str(i)
      print folder
      files = [f for f in listdir(folder) if isfile(join(folder, f))]
  
      #need to push values to a vector (vector&lt;vector&lt;string&gt;&gt;)
  
      break
  </code></pre>
  
  <p>how can i do the pushback like function in python?</p>