Question: NumPyA 4 - FOR CREDIT Create a . ipynb file called NumPyA 4 credit.ipynb and complete the following. For this assignment load but DO NOT
NumPyA FOR CREDIT
Create a ipynb file called NumPyAcredit.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 eg Q DO NOT PRINT! Your file should something look
like this:
QHello
Q x:
Before attempting these make sure to watch CodeGrade
Walkthrough in module 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?
Create an array of twenty s zeros such that those s are of type float. Assign the
array to Q
Create a four by five array of twenty s such that those s are of type integer. Assign
the array to Q
Create a two by five array of ten s such that those s are of type float. Assign the
array to Q
Create an array of numbers from up to but not including in order, type float.
Assign the array to Q
Create an array of nine numbers evenly split from to Assign the array to Q
Create a five by five array of s zeros with s down the diagonal, type integer. Assign
the array to Q
For example:
A three by three array of s with s down the diagonal would look like:
With a random seed of make a four by two array of random numbers random
numbers to NOT random integers Assign the array to Q
With a random seed of : Assign to Q four, two by five, arrays with random integers
from to
Use the size method to determine the number of integers in Q Assign it to Q
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
