Thursday, September 10, 2020

python program to create arrays using zeros() and ones()

 python program to create arrays using zeros() and ones()


 

 

python program to create arrays

        using zeros() and ones()

===========================

 

code

import numpy

a = zeros(5,int)

print(a)

b = ones(5)

print(b)

 

 

 


No comments:

Post a Comment

Durga Puja in Odisha

 Durga Puja in Odisha