"Ana DionĂsio" <[email protected]> wrote in message
news:[email protected]...
Hello!
I need your help!
I have an array and I need pick some data from that array and put it in a
list, for example:
array= [a,b,c,1,2,3]
list=array[0]+ array[3]+ array[4]
list: [a,1,2]
When I do it like this: list=array[0]+ array[3]+ array[4] I get an error:
"TypeError: unsupported operand type(s) for +: 'numpy.ndarray' and
'numpy.ndarray'"
You're calculating a+1+2. Probably a isn't something that can be added to
1+2.
--
Bartc
--
http://mail.python.org/mailman/listinfo/python-list