FILE_PATH = 'l2-text'
f = open(FILE_PATH)
print ''.join([ t for t in f.read() if t.isalpha()])
f.close()
Question: Why is their a 't' before the for loop t for t in f.read()
.
I understand the rest of the code except for that one bit.
If I try to remove it I get an error, so what does it do?
Thanks.