Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

5-8 What are the advantages and disadvantages of the BYOD movement?

Answered: 1 week ago