From 74fb8509861919ea6127e095b0d3e5cb45185439 Mon Sep 17 00:00:00 2001 From: Harshil Darji Date: Fri, 29 Jul 2016 11:24:26 +0530 Subject: [PATCH] Improvement --- SelectionSort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SelectionSort.py b/SelectionSort.py index 91f46b80a..6f3b9fe0d 100644 --- a/SelectionSort.py +++ b/SelectionSort.py @@ -16,5 +16,5 @@ def swap( A, x, y ): print ("Enter numbers seprated by comma ") response = input() -aList = list(response.split(',')) +aList = [int(item) for item in (response.split(','))] selectionsort(aList)