Question: In [4]: 1. Create a numpy array from 1 to 15 (both inclusive), and make the numpy array as an array of float numbers.

In [4]: 1. Create a numpy array from 1 to 15 (both

 inclusive), and make the numpy array as an array of float numbers. Print the numpy array you have created. M [ 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15.] 

In [4]: 1. Create a numpy array from 1 to 15 (both inclusive), and make the numpy array as an array of float numbers. Print the numpy array you have created. M [ 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15.] 2. arange() or linspace() Create a 1-D numpy array of the integer values 2,5,8,11,14,17,20,23. You have to use either arange() or linspace() provided in numpy. Print the numpy array you have created. You should not use iteration in this question.

Step by Step Solution

3.34 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

below is numpy array with specific requirements impo... View full answer

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!