diff --git a/chapters/sorting_searching/selection/code/python/selection.py b/chapters/sorting_searching/selection/code/python/selection.py new file mode 100644 index 000000000..dd99f00a4 --- /dev/null +++ b/chapters/sorting_searching/selection/code/python/selection.py @@ -0,0 +1,7 @@ +def selectionList(lst): + for i in range(0, len(lst)): + if i < len(lst): + lst[i] = i + return lst +t = [1,0,3,2,6,4,5,9,7,8] +print(selectionList(t))