Q:

Write a NumPy program to print all the values of an array

0

Write a NumPy program to print all the values of an array.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import numpy as np
np.set_printoptions(threshold=np.nan)
x = np.zeros((4, 4))
print(x)

Sample Output:

[[ 0.  0.  0.  0.]                                                     
 [ 0.  0.  0.  0.]                                                     
 [ 0.  0.  0.  0.]                                                     
 [ 0.  0.  0.  0.]]

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now