The __________ function sorts a list and returns another list.
Answers
Answered by
0
Answer:
sorted
Explanation:
sorted() It takes a list as parameter and creates a
new list consisting of the same elements
arranged in sorted order. For eg:
>>> list1 = [23,45,11,67,85,56]
>>> list2 = sorted(list1)
>>> list1
[23, 45, 11, 67, 85, 56]
>>> list2
[11, 23, 45, 56, 67, 85]
Similar questions