Question: Use array. example(np.array()) have a numpy array holding the numbers 10 - 100 going up in increments of 10. (So 10 elements, highest 100, lowest

Use array. example(np.array())

have a numpy array holding the numbers 10 - 100 going up in increments of 10. (So 10 elements, highest 100, lowest 10, +10 on each one) Now make a slice calledsub1that starts at the 4th element and goes to the 9th and goes up by 2 each time. Now make a slice calledsub2which starts at the 1st element and goes to the 6th and goes up by 2 each time. Now make a variable calledproductand multiplysub1andsub2together and save it inproduct. Print the variableproduct. Now print the square root of sub2.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!