Computer Science, asked by jerilsheril, 1 month ago

different between sort and sorted​

Answers

Answered by themakerqueries
0

Sort() is a method that only list objects inherit from their parent class. Sorted() is a function for sorting any interable, including list . The former mutates its context list in-place and returns None, while the latter returns a copy of the argument object, sorted. Both take modifiers such as reverse and key, etc.

Answered by ray014ray
2

Answer:

here is your answer

Explanation:

i hope it will help you..

good morning

have a wonderful day

Attachments:
Similar questions