Skip to content

Instantly share code, notes, and snippets.

@kashfifahim
Created September 13, 2022 00:54
Show Gist options
  • Save kashfifahim/2e02156186e3956e0de27ad4c1d25705 to your computer and use it in GitHub Desktop.
Save kashfifahim/2e02156186e3956e0de27ad4c1d25705 to your computer and use it in GitHub Desktop.
def selection_sorty(input_list):
for i in range(len(input_list)):
min_index = i
for j in range(i+1, len(input_list)):
if input_list[min_index] == None:
min_index = j
input_list[i], input_list[min_index] = input_list[min_index], input_list[i]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment