sorts.selection_sort ==================== .. py:module:: sorts.selection_sort Attributes ---------- .. autoapisummary:: sorts.selection_sort.user_input Functions --------- .. autoapisummary:: sorts.selection_sort.selection_sort Module Contents --------------- .. py:function:: selection_sort(collection: list[int]) -> list[int] Sorts a list in ascending order using the selection sort algorithm. :param collection: A list of integers to be sorted. :return: The sorted list. Examples: >>> selection_sort([0, 5, 3, 2, 2]) [0, 2, 2, 3, 5] >>> selection_sort([]) [] >>> selection_sort([-2, -5, -45]) [-45, -5, -2] .. py:data:: user_input