I am new in python and I want to create one program. for that program I need one support. I want to open python file in read mode and append mode only. I want to read the contents of file and add or remove some lines of file. In which mode I should open python file or which code should I use?