Challenge: Practice Some Basic Methods from the NumPy Library
Write a program to use some basic methods from the NumPy library.
We'll cover the following
Write a program to complete the following tasks:
- Create an array
a
of size10
with each of its elements set to a value of3
. - Find the memory size of this array and its individual element.
- Create an array
b
of size10
with evenly spaced values ranging from0
to90
. - Reverse the elements of array
b
. - Add arrays
a
andb
, and store the result in arrayc
.
Get hands-on with 1400+ tech skills courses.