Python offers the list data structure rather than a classic array. There are important differences. The elements in a list can be mixed type and so a python array does not have a type although the values of the elements will have a type. Arrays tend to be fixed size whereas lists can increase and decrease the number of elements. These materials treat lists as arrays.
Let’s start here. This is what you may know already about using an array in Python.
Sometimes the developer does know the size but does not have the values yet.
The program will get a size from the user first and then set up the array with that size.