title: Sum numbers in an array
body: <p>I'm a Python newbie.</p>
  
  <p>At this <a href="http://rosettacode.org/wiki/Sum_and_product_of_array#Python" rel="nofollow noreferrer">site</a>, they show how to sum list of integers.</p>
  
  <p>What if instead of a list of raw ints, you had a list of </p>
  
  <pre><code>class Number :
     def __init__( self, x = 0) :
        self.number = x      
  
     def getNumber( self ) :
        return self.number
  </code></pre>
  
  <p>What's the Python code to sum the self.number in an array in a few lines (hopefully)?         </p>