CODE FOR : 1) Create an array of zeros of size 8 x 8 and print the
Question:
CODE FOR :
1) Create an array of zeros of size 8 x 8 and print the data type and dimension of the array.
2) Fill the array with the numbers 1 to 64 first by row, then by column. You may want to use a for loop inside a for loop to do this.
3) Print the Transpose of the array using the T (see transpose syntax here: https://numpy.org/doc/stable/reference/generated/numpy.transpose.htmlLinks to an external site.)
4) Print only the top 4 rows and columns.
5) Create a 1D array from your 2D array with the numbers 1 to 64 in order (note the column vs row issue, you may need transposes.)
6) Now take that 1D array you made from before and reshape it back to the original 2D array.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill