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 --- bubble-sort.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bubble-sort.py') diff --git a/bubble-sort.py b/bubble-sort.py index ac7237c..10c7af0 100755 --- a/bubble-sort.py +++ b/bubble-sort.py @@ -24,6 +24,7 @@ for i in range(len(numdata)): if numdata[j] > numdata[j+1]: numdata[j], numdata[j+1] = numdata[j+1], numdata[j] -# finishing up +# finishing up, appending "-bubblesorted" to CSV +target = target[:-4]+"-bubblesorted"+target[-4:] print("Sorting complete! Writing to file.") io.egressCSV(numdata,target) -- cgit v1.2.3