Write a NumPy program to create an array of all the even integers from 30 to 70.
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]
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer