I'm a Python newbie.
At this site, they show how to sum list of integers.
What if instead of a list of raw ints, you had a list of
class Number :
def __init__( self, x = 0) :
self.number = x
def getNumber( self ) :
return self.number
What's the Python code to sum the self.number in an array in a few lines (hopefully)?