Print a 2 by 4 array where every entry is 7. np.full takes a shape and a fill value.
Data analysis labNumPy problems
Problem 7 of 50 · Create arrays · Easy
Fill a block with one value
Create a 2 by 4 array filled with 7.
Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.
1
Your solution
2