sort a list based on its 2nd valeue code example Example: sorting by second element sorted(LISTNAME, key=lambda x: x[1])