In Python, are there any advantages / disadvantages of working with a list of lists and working with a dictionary, or rather, when performing numerical operations with them? I am writing a class of functions to solve simple matrix operations for my linear algebra class. I used dictionaries, but then I saw that I was numpyusing a list of lists, so I assume that it should have some advantages.
Example: [[1,2,3],[4,5,6],[7,8,9]]Unlike{0:[1,2,3],1:[4,5,6],2:[7,8,9]}
source
share