numpy.append (array, values, axis = none): adds values along the specified axis at the end of the array
array: [array_like] Input array. values: [array_like] values to be added in the arr. Values should be shaped so that arr [..., obj, ...] = values. If the axis is defined values can be of any shape as it will be flattened before use. axis: Axis along which we want to insert the values. By default, array is flattened.
An copy of array with values being appended at the end as per the mentioned object along a given axis.
Code 1: Adding Arrays
Output: p >
1D arr1: [0 1 2 3 4] Shape: (5,) 1D arr2: [8 9 10 11] Shape: (4,) Appended arr3: [0 1 2 3 4 8 9 10 11]
Code 2: Axis game
< br />