var = [5, 10, 8 , 3, 12, 1, 15] def arange(var): length = len(var) for i in range(length-1): for j in range(length-1-i): if var[j] < var[j+1]: var[j], var[j+1] = var[j+1], var[j] return var
2023-10-24 19:00:22
var = [5, 10, 8 , 3, 12, 1, 15] def arange(var): length = len(var) for i in range(length-1): for j in range(length-1-i): if var[j] < var[j+1]: var[j], var[j+1] = var[j+1], var[j] return var