title: Iterating through a list without double for
body: <p>I am trying to iterate through a list like the code below, but I am kinda new in python and I would like to know if there is any chance to get over the two for loops. Is there any way to do so ? Thanks in advance </p>
  
  <pre><code>temp = [0, 2, 3, 4]
  for index, pointer in enumerate(temp):
      for i in range(len(temp)):
          if i != index:
             print(temp[i])
  </code></pre>
  
  <p>Results :</p>
  
  <pre><code>2
  3
  4
  0
  3
  4
  0
  2
  4
  0
  2
  3
  </code></pre>