Next / Previous / Contents / Shipman's homepage

64. WordBank.wordsOfLen(): How many words have a given length?

kkck
# - - -   W o r d B a n k . w o r d s O f L e n

    def wordsOfLen ( self, n ):
        '''How many words have length n?
        '''
        return len(self.__lenMap[n])