Tuesday, 1 October 2013

How do I just extract the second component of a Python array?

How do I just extract the second component of a Python array?

E.g.
training_set
[((1, 0, 0), 1), ((1, 0, 1), 1), ((1, 1, 0), 1), ((1, 1, 1), 0), [(1, 1,
10), 1]]
How can I just extract the second part of each matrix within the array?
Just the 1,1,1,0,1?

No comments:

Post a Comment