Write a NumPy program to create a 90x30 array filled with random point numbers, increase the number of items (10 edge elements) shown by the print statement
Write a NumPy program to create a 90x30 array filled with random point numbers, increase the number of items (10 edge elements) shown by the print statement.
import numpy as np
nums = np.random.randint(10, size=(90, 30))
print("Original array:")
print(nums)
print("\nIncrease the number of items (10 edge elements) shown by the print statement:")
np.set_printoptions(edgeitems=10)
print(nums)
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer