Post Reply 
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Seeking advice from seasoned Python programmer - emece67 - 10-19-2017 10:29 PM



User(s) browsing this thread: 1 Guest(s)