Dec-01-2019, 10:15 AM
You are never reading the lines of the file.
You can't loop through that - you need to read the lines first:
type(inf)
is <class '_io.TextIOWrapper'>
.You can't loop through that - you need to read the lines first:
lines = inf.readlines()