I have an two-dimm array, with the "internal" array as a named tuple.
EG: I have
when I print
storing the multi-dim array made total sense, unpacking (extracting) it -- has me scratching my head
thanks in advance,
Pappa Bear
p.s. not even sure what to google for this one.
EG: I have
obj_list= [] my_Object = namedtuple('my_Object', 'name attribute1 attribute2')then throughout my program
obj_list.append(my_Object (name,attribute1 ,attribute1 ) )however, when I try to unpack, I'm getting "lost" in how to do so
when I print
print (obj_list[2])) print (obj_list[6]))I get :::
Output:['list-name-a', ['ojbect2', 'object5']]
['list-name-f', ['ojbect1', 'object2' 'object4' 'object7']]
-- howeverI can't figure out how to extract "object2" and "object5" as strings...especially wehn there's potential multiple objectsstoring the multi-dim array made total sense, unpacking (extracting) it -- has me scratching my head
thanks in advance,
Pappa Bear
p.s. not even sure what to google for this one.