Page 1 of 1

Use the arrays shown to complete this assignment Array 1: 10, 15, 20, 2, 3, 4, 9, 14.5, 18; Array 2: 1, 2, 5, 8, 0, 12,

Posted: Mon Jun 06, 2022 1:28 pm
by answerhappygod
Use the arrays shown to complete this assignment Array 1: 10,
15, 20, 2, 3, 4, 9, 14.5, 18; Array 2: 1, 2, 5, 8, 0, 12, 11, 3, 22
Directions: Begin by creating two NumPy arrays with the values
shown above Now do the following with the first array: Print it to
the console Print it's shape Print a 2x2 slice of the array
including the values from [0,0] to [1,1] Output the boolean value
of each element in the array on whether the element is even (even =
True, odd = False) Use both arrays to do the following: Print the
output of adding the two arrays together elementwise Print the
output of multiplying the two arrays together elementwise Do the
following with just the second array: Print the sum of all the
elements in the array Print the product of all elements in the
array Print the maximum and minimum value of the elements in the
array