title: How to append values at specific indices from one list to another list in a for loop?
body: <p>I want to append my_list</p>
  
  <pre><code>list2 = ['1','2','3','4','5']
  
  my_list = []
  for i in list2:
      my_list.append(i)
  
  print(my_list)
  </code></pre>
  
  <p>This will put the list2 to my_list. </p>
  
  <p>The result is </p>
  
  <pre><code>['1', '2', '3', '4', '5']
  </code></pre>
  
  <p>but i want only the value '2' and '5' )</p>
  
  <p>So something like this:</p>
  
  <pre><code>[ '2', '5']
  </code></pre>
  
  <p>Have tried  </p>
  
  <pre><code>for i in list2:
      my_list.append(i[1:4])
  </code></pre>
  
  <p>Any Idea?</p>