Python Programming - Loops - Discussion

Discussion Forum : Loops - General Questions (Q.No. 28)
28.
What is the purpose of the reverse parameter in the sorted function?
It reverses the order of elements in a list.
It creates a reversed range from a specified end to start.
It reverses the order of iteration in a loop.
It sorts the elements in descending order.
Answer: Option
Explanation:
The reverse parameter in the sorted function is used to sort the elements in descending order.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.