Sort the list



Problem to sort the given list.



Example-1:


Input    : n = [ 30, 50, 20, 40, 10]
Output   : [10,20,30,40,50] 


Example-2:


Input    : n = [ -4, 5, 6, 0]
Output   : [-4,0,5,6] 







Solution




n = [ 30, 50, 20, 40, 10]

a = sorted(n)

print(a)



Output



[10,20,30,40,50]