def processAll(aListOfFile): wLists = [] for aFile in aListOfFile: texts = [] for aText in aFile: texts.append(dictFromFile(aText)) wLists.append(texts) return wLists
def processSamples(aListOfSamples): wLists = [] for aSample in aListOfSamples: wLists.append(dictFromFile(aSample)) return wLists