Sort Flashcards
1
Q
Sort() method
A
Used with lists
2
Q
Sort() function
A
Used with iterables
3
Q
What does sort do in lists?
A
Sorts items from highest to lowest
4
Q
If reverse = true in the sort method what happens?
A
Items are sorted from highest to lowest
5
Q
What do you set in a sorted function
A
The iterable (the variable name) and the key
(Also whether your want it to sort the list in reverse or not)