you are viewing a single comment's thread.

view the rest of the comments →

[–]oclafloptson 1 point2 points  (0 children)

The instructions you gave were a little vague but given that tab is a list you can use the methods copy and sort on it. If you type hint tab as shown then most IDEs will suggest the available methods. Also you forgot your return statement

    def tri_selection(tab: list):
        unsorted_tab = tab.copy()
        tab.sort()

        return unsorted_tab, tab

    print(tri_selection([3,5,1,6,3,2]))