Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 22)
22.
What does the sorted() function return when applied to a tuple?
A sorted list
A sorted tuple
Raises a TypeError
An error, as tuples cannot be sorted
Answer: Option
Explanation:
The sorted() function returns a sorted list, even when applied to a tuple.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.