Closed giffiecode closed 1 year ago
32 with open('words5.dict', 'r') as file: 33 words = file.readlines() 34 words_list = [word.strip() for word in words]
I used this to turn the dictionary file into a list of words but the function keeps returning error:
FAILED tests/test_main.py::test__word_ladder_1 - TypeError: object of type 'NoneType' has no len()
32 with open('words5.dict', 'r') as file: 33 words = file.readlines() 34 words_list = [word.strip() for word in words]
I used this to turn the dictionary file into a list of words but the function keeps returning error:
FAILED tests/test_main.py::test__word_ladder_1 - TypeError: object of type 'NoneType' has no len()