Series of posts (1)
Here I am going to summarize some advancing operations about list, which is one of the most commonly used data structure in Python. Basic usage of list will be skipped.
The built-in function sorted()
is helpful for sorting the list or dict. By providing the cmp
and key
parameter, users can make a custom sorting function, e.g.,