Question: NumPyA 5 - FOR CREDIT Create a . ipynb file called NumPyA 5 credit.ipynb and complete the following. For this assignment load but DO NOT

NumPyA5- FOR CREDIT
Create a .ipynb file called NumPyA5credit.ipynb and complete the following.
For this assignment load but DO NOT INSTALL NumPy: run the following at the top of
your script and then complete the questions:
import numpy as np
Assume all arrays are NumPy arrays, unless otherwise specified
Everything is case sensitive, so BE CAREFUL
After you create the object (e.g., Q1), DO NOT PRINT! Your file should something look
like this:
Q1=[Hello]
Q2= x[3:]
Before attempting these make sure to watch CodeGrade
Walkthrough in module 1- if you do not you will not
understand how assignments work!
For reference:
CodeGrade tips and FAQ
CodeGrade - What to do if my code doesnt work?
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:
Assign it to Q2.
Slice the array to obtain the following array:
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:
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:
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:
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:
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:
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

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!