Changes

Jump to: navigation, search

OPS435 Python Lab 5

24 bytes added, 10:10, 5 September 2017
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'
13,420
edits

Navigation menu