Quiz on Python Sort Arrays



1. What function is used to sort a list in Python?
2. Which method sorts the list in place?
3. What does the sorted() function return?
4. How can you sort a list in descending order?
5. What is the default sorting order for the sort() method?

Advertisements