Question · Python course · Module 8: Data Science

The np.zeros() Function

What will np.zeros((3, 4)) return?

Answer options

  • A list of 3 lists with 4 elements each
  • A 4x3 matrix filled with zeros
  • A 3x4 matrix filled with zeros
  • Error - zeros requires a single argument

You can check the correct answer by solving this task in the CodeWorlds game.