mikeizbicki / cmc-csci046

CMC's Data Structures and Algorithms Course Materials
55 stars 155 forks source link

nonetype issue #461

Closed giffiecode closed 1 year ago

giffiecode commented 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()