Manipulating NumPy Arrays

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

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

Requirements:

  • Maximum four to five pages in length is required.
  • You must include program code and results.
  • You must include an explanation about how the program works.
  • You must show your work for full credit.
  • You must include a minimum of three credible sources. Use the Saudi Electronic Digital Library to find your resources.
  • Your paper must follow Saudi Electronic University academic writing standards and APA style guidelines, as appropriate.

You are strongly encouraged to submit all assignments to the Turnitin Originality Check prior to submitting them to your instructor for grading. If you are unsure how to submit an assignment to the Originality Check tool, review the Turnitin Originality Check Student Guide.

Tags: No tags