PYTHON PROGRAM TO CREATE AN ARRAY WITH FILL VALUE..

Published: 01 January 1970
on channel: PythonEnthusiasts
13
0

PYTHON PROGRAM TO CREATE AN ARRAY WITH FILL VALUE(SPECIFIED VALUE)
use full()

import numpy as np

creating 1D ARRAY
my_arr = np.full(10,7)
print("1 DIMENSIONAL ARRAY:")
print(my_arr)

creating 2D ARRAY
my_2d_array = np.full([3,3],22)
print("2 DIMENSIONAL ARRAY:")
print(my_2d_array)


On this page of the site you can watch the video online PYTHON PROGRAM TO CREATE AN ARRAY WITH FILL VALUE.. with a duration of hours minute second in good quality, which was uploaded by the user PythonEnthusiasts 01 January 1970, share the link with friends and acquaintances, this video has already been watched 13 times on youtube and it was liked by 0 viewers. Enjoy your viewing!