Created
September 13, 2022 00:54
-
-
Save kashfifahim/2e02156186e3956e0de27ad4c1d25705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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