This technically answers the direct question:
lst = [line[6:17] for line in open(fname)]
but there is a fatal flaw. It is OK for throwaway code, but that data looks suspiciously like comma separated values, and the third field may even be space delimited chunks of data. Far better to do it like this so that if the first two columns sprout an extra digit, it will still work:
lst = [x[2].strip()[0:11] for x in [line.split( , ) for line in open(fname)]]
And if those space delimited chunks might get longer, then this:
lst = [x[2].strip().split()[0:2] for x in [line.split( , ) for line in open(fname)]]
Don t forget a comment or two to explain what is going on. Perhaps:
# on each line, get the 3rd comma-delimited field and break out the
# first two space-separated chunks of the licence key
Assuming, of course, that those are licence keys. No need to be too abstract in comments.