Create a new array d of integers the multiples of 3 between 0 and 100.
Create an array f 10 evenly spaced elements between 0 and 2.
Re-create array c from Practice 1c using a function. Assign this to variable name g.
📚 Practice 3. Assign the following to variables:
A 5x3 array of ones.
A one-dimensional array of 6 zeros.
A 7x7 identity array.
A random 10x10 array.
📚 Practice 4.
Use array methods and the array you created in Practice 2a (d) to count the number of multiples of 3 between 0 and 100.
📚 Practice 5. Using the array you created in Practice 3d,
Print all the elements in column 4.
Print all the elements in row 7.
Extract the 4x4 subarray at the center of the array and assign it as a new variable.
Print the last two values in column 10.
📚 Practice 6.
Create a blank 8x8 matrix and fill it with a checkerboard pattern of 0s and 1s using indexing.
📚 Practice 7.
Create a 3x3 matrix with values ranging from 0 to 8.
Reverse the order of elements in your random 10x10 array from 3d.
📚 Practice 8.
Create two random 1-D arrays of length 10. Merge them into a 2x10 array and then a 10x2 array.
📚 Practice 9.
Split your random 10x10 array from 3d into two 10x5 arrays.
Combine the first 10x5 array from (a), the 10x2 array from 8b, and the other 10x5 array from (a). In other words, recombine the 10x10 array from 3d with two new columns in index positions 5 and 6. Your final array should have 10 rows and 12 columns. Verify this by printing the shape of the resulting array.
📚 Practice 10.
Raise array b to the power of array c.
Create a new 5x10 array of random values. Subtract the mean of each row from every value.