title: How do I append a list of multiple objects to the end of a file path?
body: <p>I have created a for loop to create a list containing the string 'size_i' so I have size_01, size_02, size_03 etc all the way to size_84. Like:</p>
  
  <pre><code>def size():
      x = list()    
      for i in range(0,84):
          x = x.append('size' + str(i))
  return x
  </code></pre>
  
  <p>This works fine. Now I want to save each 'size' in that list to the end of a filepath:</p>
  
  <pre><code>d_path = /home/Jake/Documents/sizes/size_01
         = /home/Jake/Documents/sizes/size_02
  </code></pre>
  
  <p>etc...</p>
  
  <p>But for some reason I can't get it to work and I have no idea where I am going wrong! Here is my full attempt:</p>
  
  <pre><code>import os
  
  def size():
      d_path = '/home/Jake/Documents/sizes'
      x = list()
      for i in range(0,84):
          x = x.append('size_' + str(i))
          p = os.path.join(d_path,x)
      return p
  </code></pre>