Data analysis labNumPy problems

Problem 3 of 50 · Create arrays · Easy

A square of ones

Build a 3 by 3 array of ones.

Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.

Print a 3 by 3 array where every value is 1. The shape is a tuple: (3, 3).

1

Your solution

2

Scratch