Q. If sorted() is applied on a dictionary, what does it return?
Answer =
If only sorted() is applied on dictionary then it considers only the keys of the dictionary for sorting and returns a sorted list of the dictionary keys.
Post a Comment
You can help us by Clicking on ads. ^_^ Please do not send spam comment : )
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )