NUMPY BASIC EXERCISE 14
Write a solution in numpy that prints integers from 0 to 100
In this exercise, we are going to print about integers from 0 to 100.
Code
import numpy as np arr = np.arange(0,100, 2) print("Printing even integers from 0 to 100") print(arr)
Output
import numpy as np
arr = np.arange(0,100, 2)
print("Printing even integers from 0 to 100")
print(arr)