From f52470e5dea2ec753a64b18751ba92de4708c689 Mon Sep 17 00:00:00 2001 From: Harshil Darji Date: Fri, 29 Jul 2016 11:21:57 +0530 Subject: [PATCH] User input --- QuickSort.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QuickSort.py b/QuickSort.py index 79362de46..89db5a6a3 100644 --- a/QuickSort.py +++ b/QuickSort.py @@ -22,7 +22,9 @@ def partition(A, p, r): if __name__ == "__main__": - A = [8, 4, 5, 7, 1, 2, 3, 6] + print('Enter values seperated by space:') + A = [int (item) for item in input().split(' ')] + # A = [23, 45, 43, 12, 67, 98, 123, 99] # partition(A, 0, 7) print(A) quicksort(A, 0, 7)