I want to sort a tuple using abs() without actually changing the elements of the tuple to positive values.
def sorting(numbers_array): return sorted(numb
lst = [-1, 1, -2, 20, -30, 10] >>>print(sorted(lst, key=abs)) >>>[-1, 1, -2, 10, 20, -30]