Python program to print element of array
Here you will learn the example code of Python program to print element of array.
Example program to print element of array
1 2 3 4 5 6 | # array containing elements arr = [10, 20, 30, 40, 50,60,70] # printing each element for i in arr: print(i) |
Output
10
20
30
40
50
60
70
Check out our other Python examples