title: Iterating all elements of list with other elements in Python
body: <p>I am working with <code>Python 2.7.12</code></p>
  
  <p>I have the following list:</p>
  
  <pre><code>t = [1,2,3,4,5] 
  </code></pre>
  
  <p>I want to have following output:  </p>
  
  <pre><code>1+1, 1+2, 1+3, 1+4, 1+5, 2+2, 2+3, 2+4, 2+5, 3+3, 3+4, 3+5, 4+4, 4+5
  </code></pre>
  
  <p>I tried:  </p>
  
  <pre><code>zip(t,t[1:])
  </code></pre>
  
  <p>but the output was: </p>
  
  <pre><code>[(1, 2), (2, 3), (3, 4), (4, 5)]  
  </code></pre>
  
  <p>Then, I also tried: </p>
  
  <pre><code> zip(t,t)    
  </code></pre>
  
  <p>but the output was:  </p>
  
  <pre><code>[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)] 
  </code></pre>