Skip to content

Instantly share code, notes, and snippets.

@dmoneyballer
Created August 20, 2019 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmoneyballer/51e2bc74174c1b13cbaa31aa9858eca6 to your computer and use it in GitHub Desktop.
Save dmoneyballer/51e2bc74174c1b13cbaa31aa9858eca6 to your computer and use it in GitHub Desktop.
# Put your code here
rfile = input("enter the file to read from")
wfile = input("enter the file to write to")
reading = open(rfile, 'r')
writing = open(wfile, 'w')
count = 1
for line in reading:
writing.write(f' {count}> {line}')
count += 1
reading.close()
writing.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment