def ecc(self): E, prev = [], 0 for nb in self.Liste: prev = prev + nb E.append(prev) return E