Question: (Use Jupyter notebook) Task 1 1. Create a 10 array [-10,10] using the function arange () and name it np_array. 2. Print np_array. 3. Print

(Use Jupyter notebook)

(Use Jupyter notebook) Task 1 1. Create a 10 array [-10,10] using

Task 1 1. Create a 10 array [-10,10] using the function arange () and name it np_array. 2. Print np_array. 3. Print the length of np_array. 4. Print the type of p_array. 5. Print the 6th element of np_array. 6. Print the data type of the elements inside np_array 7. Using slicing, print the elements of np_array with index 2 to 8 (both inclusive> 8. Using slicing, set the first 2 and last 2 elements np_array as 99. Print np_array to verify your code. 9. Convert all the negative numbers in np_array to the corresponding absolute value. Print np_array

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 Databases Questions!