title: Multiply element of list with other elements in the same list
body: <p>I want to multiply an element of a list with all other elements.</p>
  
  <p>For example:</p>
  
  <pre><code>def product(a,b,c):
      return (a*b, a*c, a*b*c)
  </code></pre>
  
  <p>I have done this</p>
  
  <pre><code>def product(*args):
      list = []
      for index,element in enumerate(args):
          for i in args:
              if (args[index]*i) not in list:
                  list.append(args[index]*i)
      return list
  </code></pre>
  
  <p>but this gives me <code>[a*a, a*b,a*c, b*b]</code> etc. I don't want the <code>a*a</code>, <code>b*b</code>, <code>c*c</code> bit in there.</p>