Q:

Write a NumPy program to create an array of all the even integers from 30 to 70

0

Write a NumPy program to create an array of all the even integers from 30 to 70.

All Answers

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

import numpy as np
array=np.arange(30,71,2)
print("Array of all the even integers from 30 to 70")
print(array)

Sample Output:

Array of all the even integers from 30 to 70
[30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70]

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