Code Snippet Multidimensional Array using a Dictionary (Python)
The example shows how to establish a dictionary of (row, column):value pairs to mimic a two dimensional array. This can be easily expanded to more dimensions. Python3 has dictionary comprehension, making the process of creating a dictionary of this type easier.
__________________
Python
Domain Name Forum
|