i have this text file
test.html
<html>
<body>
<table>
<tr>
<td id="A">A</td>
<td id="B">B</td>
</tr>
<tr>
<td id="C">C</td>
<td id="D">D</td>
</tr>
</table>
</html>
</body>
python file
f = open('test.html')
ans = "A"
line = f.readline()
print(line)
if ans == 'line':
#change the row A to a dash: <td>-</td>
line = f.readline()
f.close()
so what i want to do is to scan through the html file and when i find the column A i can change it into a dash and save the file i am a beginner in python and don't know much about handling file input and output Please Note: Without Libraries