(self)
return self.values[-1]
get current maximum value
get current maximum value
get current maximum value
def get_max(self):
        "get current maximum value"
        if not self.values:
            return 0
        return self.values[-1]
def get_max ( self ) : if not self . values : return 0 return self . values [ - 1 ]