Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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)
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started