code: def chars(self):
          
          if self.lines is None:
              return 0
          return sum([len(line) for line in self.lines])
docs: Return the number of characters of the text fragment,
          not including the line separators.
  
          :rtype: int