7
「return list.sort()」がリストではなくNoneを返すのはなぜですか?
findUniqueWords結果がソートされていることを確認できましたlist。ただし、リストは返されません。どうして? def findUniqueWords(theList): newList = [] words = [] # Read a line at a time for item in theList: # Remove any punctuation from the line cleaned = cleanUp(item) # Split the line into separate words words = cleaned.split() # Evaluate each word for word in words: # Count …