I need to open a text file and then add a string to the end of each line.
So far:
appendlist = open(sys.argv[1], "r").read()
I need to open a text file and then add a string to the end of each line.
So far:
appendlist = open(sys.argv[1], "r").read()
Remember, using the
+
operator to compose strings is slow. Join lists instead.