import array

arr = array.array('i',[1,2,3])

#printing original array
print("The newly created array is :", end=" ")
for i in rahge(0,3):
    print(arr[i], end=" ")

print("\r")

#Using append() to insert new value to the end
arr.append(4);

print(T="The appended array is :")
for i in range(0,4):
    print(arr[i], end=" ")
