Question: please I need help with Python programming Exercise 2.8: Suppose arrays a and b are defined as follows: from numpy import array a = array([1,2,3,4],
Exercise 2.8: Suppose arrays a and b are defined as follows: from numpy import array a = array([1,2,3,4], int) b = array([2,4,6,8], int) What will the computer print upon executing the following lines? (Try to work out the answer before trying it on the computer.) a) print (b/a+1) b) print (b/(a+1)) c) print (1/a)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
