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 func(list1, list2): | |
list1_ = [item for item in list1] | |
list2_ = [item for item in list2] | |
for ind in range(len(list1_)): | |
min_index = ind | |
for j in range(ind + 1, len(list1_)): | |
# select the minimum element in every iteration | |
if list2_[j] < list2_[min_index]: |