From b8a2b8d9aee28d5ef1753d8ebdfea480b9603c48 Mon Sep 17 00:00:00 2001 From: internetlandlord Date: Mon, 31 Oct 2022 13:52:22 -0500 Subject: Re-configured inputoutput to remove appending in egress function. Add appending to each algorithm script to denote sorting job performed --- merge-sort.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'merge-sort.py') diff --git a/merge-sort.py b/merge-sort.py index 683af05..2464e03 100755 --- a/merge-sort.py +++ b/merge-sort.py @@ -56,6 +56,7 @@ def mergeSort(data): # calling the function mergeSort(numdata) -# finishing up and egress of data +# finishing up and appending "-mergesorted" to CSV +target = target[:-4]+"-mergesorted"+target[-4:] print("Sorting done, writing to file!") io.egressCSV(numdata,target) -- cgit v1.2.3