13,420
edits
Changes
→Create a Python Script Demonstrating Writing to Files
# Takes two strings, reads data from first file, writes data to new file, adds line number to new file
</source>
::# '''Replace''' the main section of your Python script (i.e. the boiler-plate) near the bottom with the following:<source lang="python">
if __name__ == '__main__':
file1 = 'seneca1.txt'