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)