Iterating means going through elements one by one. As we use multi-dimensional array in python (numpy), we can use for loop. Iterating 1-D: For 1-D array, iteration happens one by one. import numpy as np
arr=np.array([1,2,3])
print("Original array:",arr) print("After iteration:")
for x in arr:
print(x)