Thursday, September 10, 2020

python program to create an array with even numbers upto 10

 python program to create an array with even numbers upto 10


 

      python program to create an array

           with even numbers upto 10

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

 

Code

import numpy

a = arrange(2,11,2)

print(a)

 

output

[ 2 4 6 8 10 ]

 

 


No comments:

Post a Comment

Durga Puja in Odisha

 Durga Puja in Odisha