I was trying to sort list elements inside a function without return when I try to print the list by its name it does not get sorted, but it is sorted inside a function.
I have to update the list inside the function without returning
def sort(n):
n.append(10)
sorted(n)
n = [5,1,2,3]
print(n)
Expected : [1,2,3,5]
actual: [5,1,2,3]