Question: 1) Create a 10 x 10 numpy integer array and set it equal to a variable. Print it to output once you're done populating it

1) Create a 10 x 10 numpy integer array and set it equal to a variable. Print it to output once you're done populating it as described below.

  • make the first row contain the numbers 1 through 10 in order
  • make each element in the second row equal to 1 more than the first row
  • row 3 = row 1*10
  • row 4 = (row 1)2
  • row 5 = 2
  • row 6 = 3*row 3-2*row 4
  • row 7 = alternating 0s and 1s, starting with 1
  • row 8 = all 8s except the third from last element, which is -8
  • row 9 = 1, 1/2, 1/3, 1/4, ...
  • row 10 = all elements are 42

2) copy this array into a new variable, then in the new array, multiply each number in the third column by two 3) set the second to last element in each row of the new array equal to 0, and print the new array as output 4) multiply your original array by this new array and print the output

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!