Categories
Mastering Development

Python code to read text file and change data

I need a help in writing a python code that can read from a text file called sample.txt and modify the elements in the text file. I have put in sample text and the result that I expect from it. The text file I want to read has data in the format below which is […]