Question: python code plz 1. Create a 1D array with the numbers 20,18,,4,2,0,2,4,,18,20 using the function arange () and name it np array. 2. Print nparray.

python code plz python code plz 1. Create a 1D array with the numbers 20,18,,4,2,0,2,4,,18,20

1. Create a 1D array with the numbers 20,18,,4,2,0,2,4,,18,20 using the function arange () and name it np array. 2. Print nparray. 3. Print the data type of the elements inside np array 4. Print the type of np_array. 5. Print the middle element of np array with the use of the function len ( ). 6. Using slicing, print the elements of nparray with index 4 to 12 (both inclusive>. 7. Using slicing, set the first 3 and last 3 elements np array with the value of the last two digits of your student number. If the second last digit of your student number is 0 , then you can just use the last digit as the value. Print nparray to verify your code. 8. 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!