Manipulating Numpy Arrays

Write a program to provide the following tasks for a 1-D NumPy array:

Create and print a one-dimensional (1-D) with 20 numerical items
Print the dimension of the array
Print the array value for index equal 10
Slice and print the array between 5 and 15 indexes. Include both of the arrays.
Print the data type of the array
Make a copy of the array and print it
Make a view of the array and print it
Print the shape of the array
Reshape the array and print it

Sample Solution