Q53
What does the built-in function sorted() do in Python?
A.
Returns a sorted list of the specified iterable
AnswerB.
Converts a string to lowercase
C.
Returns the square of a number
D.
Returns the absolute value of a number
Answer: Option A
Solution
Answer: Option A
Solution:
The sorted() function in Python takes an iterable as an argument and returns a new sorted list containing all items from the iterable in ascending order.