<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Arrays for Numerical work?
Step2:  You can see, adding two lists just results in a longer list, catenation of the two.
<ASSISTANT_TASK:>
Python Code:
a = [1,2,3]
b = [4,5,6]
c = a+b
print(c)
Explanation: Arrays for Numerical work?
End of explanation
a.append(b)
print(a)
def sum(data):
     sum the elements of an array
    
    asum = 0.0
    for i in data:
        asum = asum + i
    return asum
# the length of the array is defined here, and re-used below
# to test performance, we can make this number very large 
# 1000, 1000000 etc.
n = 10
%%time
a = list(range(n))
%%time
print(sum(a))
import numpy as np
%%time
a=np.arange(n)
%%time
print(sum(a))
#%%time
%time print(a.sum())
%time print(a.sum())
a=np.arange(10)
b=np.arange(10)
c = a + b
d = 3*a*a + b + 2.0
print(c)
print(d)
c.shape
c2=c.reshape(5,2)
c3=c.reshape(2,5)
print(c)
print(c2)
print(c3)
type(c)
c[0]=999
print(c2)
d2=c.reshape(5,2)[1:3,:]
print(d2)
d2[1,1]=888
print(c)
print(c2)
Explanation: You can see, adding two lists just results in a longer list, catenation of the two.
End of explanation
<END_TASK>