May-24-2017, 05:22 PM
replace all code betweel
and move the rest up to the ... do stuff ... line above
try ... except
withwith open(file) as f: line = f.readlines() if 'murder' in line: line = line.replace('murder', '------') ... do stuff with line ...also remove
for line in fhand:
and move the rest up to the ... do stuff ... line above