Challenge: Practice Some Basic Methods from the NumPy Library

Write a program to use some basic methods from the NumPy library.

Write a program to complete the following tasks:

  1. Create an array a of size 10 with each of its elements set to a value of 3.
  2. Find the memory size of this array and its individual element.
  3. Create an array b of size 10 with evenly spaced values ranging from 0 to 90.
  4. Reverse the elements of array b.
  5. Add arrays a and b, and store the result in array c.

Get hands-on with 1200+ tech skills courses.