NumPy - Creating Arrays
You want to create a 4x4 NumPy array filled with the value 9, but only the diagonal elements should be 0. Which code correctly achieves this using
np.full() and other NumPy functions?np.full() and other NumPy functions?15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions