On Thu, 02 May 2013 02:10:11 -0700, Ana DionĂsio wrote:
> Hello! I have several numpy arrays in my script and i want to add them.
> For example:
>
> a=[1,2,3,4,5]
> b=[1,1,1,1,1]
> c=[1,0,1,0,1]
These are not numpy arrays, they are lists of ints. Based on the error
message you quote:
TypeError
Ana DionĂsio wrote:
> Hello! I have several numpy arrays in my script and i want to add them. For
> example:
> a=[1,2,3,4,5]
> b=[1,1,1,1,1]
> c=[1,0,1,0,1]
> for i in range(5):
> d[i]=a[i]+b[i]+c[i]
> print d
> [3,3,5,5,7]
> I did it like that but I get an error: "TypeError: unsupported