Python List of Lists: The Complete Guide (with the Mutation Trap, Flatten Benchmarks, and Patterns)
Everything you need to do with a Python list of lists — create, traverse, modify, flatten, transpose, sort, copy — plus the [[]]*3 mutation trap, shallow vs deep copy, flatten performance comparison, and when to leave for NumPy or pandas.