Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I do multidimensional tables?

Asked by
Nootian 184
4 years ago
Edited 4 years ago

I know in python you do a multidimensional table and its like this:

MyTable = {{"jap","Harry"},{"Jerry","Cherry"},{"Jam","Pam"}}

print(MyTable[1,2])
print(MyTable[2,1])
print(MyTable[3,1])

Output:

Harry
Jerry
Jam

But how would I do this in a script?

1 answer

Log in to vote
0
Answered by
tjtorin 172
4 years ago
MyTable = {{"jap","Harry"},{"Jerry","Cherry"},{"Jam","Pam"}}

print(MyTable[1][2])
print(MyTable[2][1])
print(MyTable[3][1])
0
Thank you! Nootian 184 — 4y
Ad

Answer this question