Filter a list using a conditional list comprehension
even = [x for x in nums if x % 2 == 0]
Auto-create keys with a default value
Loop through a list with both index and value
Read a file line by line without loading it all into memory
Sort a list of dictionaries by a specific key