Created
August 20, 2019 00:50
-
-
Save dmoneyballer/51e2bc74174c1b13cbaa31aa9858eca6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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