@KylinZenda This is due to the change of type of wordList, when the original answer is posted, wordList is a set and not it is a list.