
"""simple docstring"""



def 					_UpperCAmelCase      ( __lowerCamelCase   :       Dict		)     ->					Union[str, Any]:
  _snake_case					     =       len(__lowerCamelCase		)
  for i in range(length - 1		):
    _snake_case					     =       i
    for k in range(i + 1 ,					__lowerCamelCase		):
      if collection[k] < collection[least]:
        _snake_case					     =       k
    if least != i:
      _snake_case     ,					_snake_case					     =       (collection[i], collection[least])
  return collection


if __name__ == "__main__":
 UpperCAmelCase__          = input('Enter numbers separated by a comma:\n').strip()
 UpperCAmelCase__          = [int(item) for item in user_input.split(',')]
 print(selection_sort(unsorted))





"""simple docstring"""



def 					_UpperCAmelCase      ( __lowerCamelCase   :       list ,					__lowerCamelCase   :       int = 0		)     ->					list:
  _snake_case					     =       length or len(__lowerCamelCase		)
  _snake_case					     =       False
  for i in range(length - 1		):
    if list_data[i] > list_data[i + 1]:
      _snake_case     ,					_snake_case					     =       list_data[i + 1], list_data[i]
      _snake_case					     =       True

  return list_data if not swapped else bubble_sort(__lowerCamelCase ,					length - 1		)


if __name__ == "__main__":
 import doctest

 doctest.testmod()



