experiments = {'Reuben': 625, 'Stitch': 626, 'Leroy': 629} print(experiments['Stitch']) def find_min_index(lst): min_index = 0 for i in range(1, len(lst)): if lst[i] < lst[min_index]: min_index = i return min_index def swap_elements(lst, i, j): lst[i], lst[j] = lst[j], lst[i] def sort_list(lst): for i in range(len(lst)): min_index = find_min_index(lst[i:]) swap_elements(lst, i, i+min_index) return lst Пример использования: my_list = [4, 2, 7, 1, 5] print(sort_list(my_list)) # [1, 2, 4, 5, 7]