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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4f0ec7e7e3_49266f4f0ec1e5d7.jpg)
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
Get step-by-step solutions from verified subject matter experts
