Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions