3.4ARRAY/LIST INITIALIZATION
The initialization of arrays can be done with the initialization at the compile time. The initialization of the elements of the array at compile time refers to the same way we initialize the normal or ordinary variables at the time of their declaration. When an array is initialized, there is a need to provide a specific value for every element in the array.
The general form of initializing arrays is as follows:
array_name = [list of values]
An example of the initialization of arrays at compile time is as follows.
During the initialization of arrays, we may omit the size of the array. For example,
age = [20, 25, 23, 28, 30]
In the previous example, the compiler will automatically allocate memory for all the initialized elements of the array. For example,
marks = [56, 69, 40,99, 82, 96, 72]

FIGURE 3.3 Initialization of the array grades