Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Set a random seed of 5 . Create a one - dimensional array of twenty random integers from 0 to 1 4 . Index the

Set a random seed of 5.
Create a one-dimensional array of twenty random integers from 0 to 14.
Index the array, assigning the fourth integer to Q1.
Slice the array to obtain the following array:
array([4,7,14,11,0,14,0,7,12,1,5,7])
Assign it to Q2.
Slice the array to obtain the following array:
array([14,6,0,8,7,11,14,7,1])
Assign it to Q3.
Set a random seed of 6.
Create a seven by eight array of random integers from 0 to 14.
Index the array, assigning the 5 in the sixth row to Q4..
Slice the array to obtain the following array:
array([[13,10,0],
[9,10,1]])
Assign it to Q5.
Set a random seed of 10.
Create a four by five array of random integers from 0 to 14. Assign it to Q6.
Slice the array, such that it will alter Q6.
Slice the array and change one of the values to obtain the following array:
array([[11,12,9],
[13,1,4],
[0,10,8]])
Assign it to Q7.
Set a random seed of 8.
Create another four by five array of random integers from 0 to 14. Assign it to Q8.
Slice the array, such that it will not alter Q8.
Slice the array and change one of the values to obtain the following array:
array([[10,8,3],
[13,5,4],
[10,11,12]])
Assign it to Q9.
Set a random seed of 20.
Create a two by six array of random integers from 0 to 14. Alter the array to obtain the following array:
array([[3,10,12],
[10,9,4],
[2,0,6]])
Assign it to Q10.
Set a random seed of 15.
Create a one-dimensional array of ten random integers from 0 to 14. Alter the array to obtain the following array:
array([[8],
[5],
[12],
[5],
[7],
[0],
[12],
[11],
[7],
[11]])
Assign it to Q11.
Set a random seed of 9.
Create a five by three array of random integers from 0 to 14. Create a copy of the fourth array (in other words, the fourth row) and assign it to Q12.

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

Entity Alignment Concepts Recent Advances And Novel Approaches

Authors: Xiang Zhao ,Weixin Zeng ,Jiuyang Tang

1st Edition

9819942527, 978-9819942527

More Books

Students also viewed these Databases questions