title: How to delete elements with condition below for loops?
body: <p>Hello i have a code like this :</p>
  <pre><code>def remove_something (token):
      temp_token = token
      for t in token :
          if len(t) == 5:
              temp_token.remove(t)
      return temp_token
      
  a = ['abcde','abcde','abcde','ef','ghi']
  print(remove_something(a))
  </code></pre>
  <p>That output should be like this :</p>
  <p><code>['ef', 'ghi']</code></p>
  <p>But why like this ? :</p>
  <p><code>['abcde', 'ef', 'ghi']</code></p>