def average_sentence_length(self, text):
    ' count the average length of sentences\n        avg = words / sentences\n        '
    if (len(self.words_list(text)) == 0):
        return 0
    else:
        return (len(self.words_list(text)) / len(self.sentence_split(text)))
count the average length of sentences
avg = words / sentences
def average_sentence_length(self, text):
    ' count the average length of sentences\n        avg = words / sentences\n        '
    if (len(self.words_list(text)) == 0):
        return 0
    else:
        return (len(self.words_list(text)) / len(self.sentence_split(text)))