<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def length(self):
 """ The total discretized length of every entity. Returns -------- length: float, summed length of every entity """

        length = float(sum(i.length(self.vertices)
                           for i in self.entities))
        return length