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

NumPyA4- FOR CREDIT
Create a .ipynb file called NumPyA4credit.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?
Create an array of twenty 0s (zeros) such that those 0s are of type float. Assign the
array to Q1.
Create a four by five array of twenty 1s such that those 1s are of type integer. Assign
the array to Q2.
Create a two by five array of ten 2s such that those 2s are of type float. Assign the
array to Q3.
Create an array of numbers from 0 up to (but not including)50 in order, type float.
Assign the array to Q4.
Create an array of nine numbers evenly split from 4 to 18. Assign the array to Q5.
Create a five by five array of 0s (zeros) with 1s down the diagonal, type integer. Assign
the array to Q6.
For example:
A three by three array of 0s with 1s down the diagonal would look like:
With a random seed of 10, make a four by two array of random numbers (random
numbers 0 to 1, NOT random integers). Assign the array to Q7.
With a random seed of 9: Assign to Q8 four, two by five, arrays with random integers
from 0 to 15.
Use the size method to determine the number of integers in Q8. Assign it to Q9.

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!