title: Vector Class Adding
body: <p>I've defined a class for n-dimensional vectors with:</p>
  
  <pre><code>class Vector:
      def __init__(self, v):
          if len(v)==0: self.v = (0,0)
          else: self.v = v
  </code></pre>
  
  <p>and one of my functions (add) within the class isn't returning the values I would like it to. Currently I have it defined as:</p>
  
  <pre><code>for i in range(self.dim()):
      newvector.append(self[i+1] + other[i+1])
  return Vector
  </code></pre>
  
  <p>and I also tried: </p>
  
  <pre><code>def __add__(self, other):
      for i in range(len(self)):
          added = tuple( a + b for a, b in zip(self, other) )
      return Vector(*added)
  </code></pre>
  
  <p>but this returns and Unsupported Operand Type error.</p>
  
  <p>The test I'd like it to pass is <code>str(v1 + v2) == 'Vector: [3, 5, 7]'</code> however it's returning <code>'Vector: [2, 3, 4, 1, 2, 3]'</code> </p>