We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
There are n items in unsorted, so unsorted[n] is out of range (remember, lists start at 0!). If you want to pass the last element of the list to bigSorting, use unsorted[n-1] or unsorted[-1]. If you want to pass the full list to bigSorting, try result = bigSorting(unsorted). If you need more help, please post your full code :)
Big Sorting
You are viewing a single comment's thread. Return to all comments →
There are n items in unsorted, so unsorted[n] is out of range (remember, lists start at 0!). If you want to pass the last element of the list to bigSorting, use unsorted[n-1] or unsorted[-1]. If you want to pass the full list to bigSorting, try result = bigSorting(unsorted). If you need more help, please post your full code :)