I am new to Python.
On this site, they show how to summarize a list of integers.
What to do if instead of the list of source ints you had a list
class Number : def __init__( self, x = 0) : self.number = x def getNumber( self ) : return self.number
What is Python code to sum self.number in an array over multiple lines (hopefully)?
source share