Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 29)
29.
What is the purpose of the sorted() function?
Sorts elements of a list in ascending order
Reverses the order of elements in a list
Shuffles elements randomly in a list
Checks if a variable is of a certain type
Answer: Option
Explanation:
The sorted() function is used to sort the elements of an iterable, such as a list, in ascending order.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.