Dec-31-2016, 01:20 AM
I am still a beginner and would like to know the best way to approach my task -- whether to structure my data table as a list or dictionary or something else?
The best way to describe my data table is to picture an Excel table with 50 rows and 47 columns.
Column 1 consists of 50 unique two-letter codes (this would by my "key" in a dictionary). Columns 2 through 48 have variables/numbers (one per column) associated/linked with the unique two-letter code in column 1.
As a beginner, I have used a dictionary to ".get" one variable associated with a unique key.
However, what if I need to .get 47 variables based on the two-letter unique key? Is that possible with a dictionary? Is it easy to grab/identify each variable with some kind of loop or something?
I know this may not be enough information, but it is the best way for me to describe my task
thanks for looking
The best way to describe my data table is to picture an Excel table with 50 rows and 47 columns.
Column 1 consists of 50 unique two-letter codes (this would by my "key" in a dictionary). Columns 2 through 48 have variables/numbers (one per column) associated/linked with the unique two-letter code in column 1.
As a beginner, I have used a dictionary to ".get" one variable associated with a unique key.
However, what if I need to .get 47 variables based on the two-letter unique key? Is that possible with a dictionary? Is it easy to grab/identify each variable with some kind of loop or something?
I know this may not be enough information, but it is the best way for me to describe my task
thanks for looking