def replace_items(n):
min_index = n.index(min(n))
n[min_index], n[-1] = n[-1], n[min_index]
return n
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def replace_items(n):
min_index = n.index(min(n))
n[min_index], n[-1] = n[-1], n[min_index]
return n