Write a python program to print the elements in the array

Write a python program to print the elements in the array. In the Python programming language, print the elements of an array. The number of elements in the array will be printed by this program. In the python programming language for beginners, the smallest number in the array will be determined using the len(arr) function.

arr = [100,300,500,700]; 
print("The elements are listed");
for i in range(0, len(arr)): 
print(arr[i])

Output:

The elements are listed
100
300
500
700