Python modules

importDocumentation » The Python Tutorial » 6. Modules

from import *

imports all names except those beginning with an underscore (_). In most cases Python programmers do not use this facility since it introduces an unknown set of names into the interpreter

list.sort(key=len) sorted(iterable, key=str.lower)

Documentation » Python HOWTOs » Sorting HOW TO

l4 = sorted(l4, key=lambda concept: (concept[0].lower(), concept[1])