title: how can I append the values of the print function in python
body: <p>this is what the print function gives me </p>
  
  <pre><code>/home/codes/paths/0000001090.png
  /home/codes/paths/0000001091.png
  /home/codes/paths/0000001092.png
  /home/codes/paths/0000001093.png
  </code></pre>
  
  <p>I want to have it like </p>
  
  <pre><code>[/home/codes/paths/0000001090.png
  /home/codes/paths/0000001091.png
  /home/codes/paths/0000001092.png
  /home/codes/paths/0000001093.png]
  </code></pre>
  
  <p>so I tried use list.append</p>
  
  <pre><code>raw_image_path= image_path+str(image_id).zfill(10)+'.png'
  all_images = []   
  all_images.append(raw_image_path)
  print (all_images)
  </code></pre>
  
  <p>but it seems to append every printed value separately </p>
  
  <pre><code>    [/home/codes/paths/0000001090.png]
      [/home/codes/paths/0000001091.png]
      [/home/codes/paths/0000001092.png]
      [/home/codes/paths/0000001093.png]
  </code></pre>
  
  <p>how can I solve this ? </p>