How To Use Writelines In Python