os python extension code example Example: os extension >>> os.path.splitext('/a/b.c/d') ('/a/b.c/d', '')