def fetch_word_from_dictionary(self, min_chars):
        """Get a word from a dictionary with minimum [min_chars] characters."""
        word  = ""
        words = open(dictionary_file, "r").readlines()
        while len(word) < min_chars:
            word = choice(words)

        word = word.lower().strip()
        return word
Get a word from a dictionary with minimum [min_chars] characters.
recipes/Python/65217_Password_generator/recipe-65217.py