Ice Tweak

-2

votes
1

answer
18

views

why dont show the result? syntax error not found in PyCharm [on hold]

def findsmallest(arr): smallest = arr[0] smallest_index = 0 for i in range(1, len(arr)): if arr[i] < smallest: smallest = arr[i] smallest_index = 1 return smallest_index def selectionsort(arr): newArr = [] for i in range(len(arr)): smallest = findsmallest(arr) newArr.append(arr.pop(smallest)) return...
Ice Tweak