A

Admin • 833.24K Points
Coach

Q. How can you fill a NumPy array with a specific value?

  • (A) np.fill()
  • (B) np.assign()
  • (C) np.full()
  • (D) np.value()
  • Correct Answer - Option(C)
  • Views: 17
  • Filed under category Numpy
  • Hashtags:

Explanation by: Admin

np.full(shape, value) creates an array filled with a given value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.