Suppose I have two txt files, in.txt
and out.txt
.
in.txt:
Mary is Passed
Jane is Failed
out.txt:
Status of Mary: 'N/A'
Status of Jane: 'N/A'
I want to write Python code which reads in.txt
and replaces the 'N/A' with Passed
for Mary and Failed
for Jane in out.txt
.
I could manage to write at the end of the line of out.txt
but not at 'N/A'