Seeking advice from seasoned Python programmer
|
10-19-2017, 10:29 PM
Post: #2
|
|||
|
|||
RE: Seeking advice from seasoned Python programmer
Not used to such class based constructions, but if:
a = [[1, 2, 3], 4, 5] # your structure b = [[6, 7, 8], 9, 10] # another one c = [a, b] # an array containing two of them then c[1] returns [[6, 7, 8], 9, 10], which is b c[1][0] returns [6, 7, 8] which is the array in b c[1][0][2] returns 8, which is the last member of the array inside b. Regards. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Seeking advice from seasoned Python programmer - Namir - 10-19-2017, 06:53 PM
RE: Seeking advice from seasoned Python programmer - emece67 - 10-19-2017 10:29 PM
RE: Seeking advice from seasoned Python programmer - Namir - 10-20-2017, 02:29 AM
RE: Seeking advice from seasoned Python programmer - emece67 - 10-20-2017, 07:56 AM
RE: Seeking advice from seasoned Python programmer - Namir - 10-20-2017, 10:35 AM
RE: Seeking advice from seasoned Python programmer - pier4r - 10-20-2017, 08:08 AM
RE: Seeking advice from seasoned Python programmer - emece67 - 10-20-2017, 05:29 PM
|
User(s) browsing this thread: 1 Guest(s)