From e622568800a486b955d9cd041e7bcf22bc7d2a4c Mon Sep 17 00:00:00 2001 From: Sushant Shivraj <56505652+sushantshivraj28@users.noreply.github.com> Date: Sun, 13 Oct 2019 16:43:05 +0530 Subject: [PATCH] Update MergeSort.py --- MergeSort.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MergeSort.py b/MergeSort.py index eee084a..4913144 100644 --- a/MergeSort.py +++ b/MergeSort.py @@ -27,6 +27,9 @@ def mergeSort(arr): arr[k] = L[i] i+=1 k+=1 + + + while j < len(R): arr[k] = R[j] @@ -50,7 +53,7 @@ def printList(arr): r_no.append(row[0]) arr = r_no.copy() -print("The sorted Class Roll numbers from the database are as follows: \n") +print("The sorted Class Roll numbers for given student from the database are as follows: \n") mergeSort(arr) printList(arr) b = datetime.datetime.now()