with open('names.txt', 'r') as f: myNames = [line.strip() for line in f]
crimefile = open(fileName, 'r') yourResult = [line.split(',') for line in crimefile.readlines()]