The array is an data structure, to store a collection of elements.

How do I declare an array in Python?

Arrays are declared in two ways.

One way using square bracket literal syntax.

numbers=[1,2,3,4]

How to find the size of an array in Python

Array size is the count of elements in it. len(array) function returns an array length

numbers=[1,3,5,7,9];

print(len(numbers)) # 5

Array iterate elements using for in loop

numbers=[1,3,5,7,9];

for element in numbers:
    print(element);