Question: Q . Create an array of even integers two through sixteen called q 1 . Index that array to obtain the following: [ 1 4

Q. Create an array of even integers two through sixteen called q1. Index that array to obtain the following:
[14,6,12]
Assign it to Q1.
Q. Create the following array called q2:
array([1,3,2],
[0,7,4]])
Then index q1 withq2. Assign it to Q2.
Q. Reshape q1 into a four by two array. Assign it to Q3.
Q Index Q3 to obtain the following array:
array([4,2])
Assign it to Q4.
Q. Index Q3 to obtaining the following array:
array([[2],
[6]])
Assign it to Q5.
Q. Set a random seed of 6.
Create an array of ten random integers 0 through 9. Then sort the array so the values are in numerical order. Assign it to Q6.
Create a four by five array of random integers 0 through 9 and call it
q7. Then sort the array by columns. Assign it to Q7.
Now sort the q7 array by rows. Assign it to Q8.
Q. Create a structured array, called
q9, with the following information:
Fruit
Color
Ranking
Grape
Purple
3
Apple
Red
2
Banana
Yellow
1
Index q9 to obtain the following:
Assign it to Q9.
Index q9 to obtain the following:
(Banana,Yellow,1)
Assign it to Q10.
Index q9 by all Rankings less than 3. Assign it to Q11

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!