3.3ARRAY/LIST DECLARATION
We know that all variables must be declared before they are used in the program. But in python, it is not mandatory to declare variables before use. Declaring an array involves the following specifications:
•Data Type – The data type means the different kinds of values it can store. The data type can be an integer(int), float, char, or any other valid data type.
•Array Name – The name refers to the name of the array which will be used to identify the array.
•Size – The size of an array refers to the maximum number of values an array can hold.
Syntax –
List=[]
Example:
Salary=[]
The previous example declares the salary to be an array. In Python, the array index starts from zero. The first element of this array will be stored in salary [0], the second element will be stored in salary [1], and so on. In memory, the array is arranged as shown in Figure 3.2.

FIGURE 3.2 Memory representation of an array
Here...