From 030d136e851340af56c613bca75a4c58d91e8c4a Mon Sep 17 00:00:00 2001 From: internetlandlord Date: Wed, 26 Oct 2022 09:55:31 -0500 Subject: Refactoring/housekeeping on source code for bubble, io and insertion sort files. --- bubble-sort.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bubble-sort.py') diff --git a/bubble-sort.py b/bubble-sort.py index 431a6f2..ac7237c 100755 --- a/bubble-sort.py +++ b/bubble-sort.py @@ -1,8 +1,10 @@ #!/bin/python3 -# ---------- title - - +# ---------- Bubble Sort Algorithm +# Python implementation of bubble sort algorithm +# uses the csv, and inputoutput modules to import +# CSVs and sort the numbers in a list before writing +# to a CSV file with an appended -sorted title. # ---------- Imported modules import inputoutput as io @@ -23,5 +25,5 @@ for i in range(len(numdata)): numdata[j], numdata[j+1] = numdata[j+1], numdata[j] # finishing up -print("writing to file") +print("Sorting complete! Writing to file.") io.egressCSV(numdata,target) -- cgit v1.2.3