Why Use An Array in Python
Why Use An Array in Python
An array is used to store one value at a time.Array are an important data structure for any programming
language .Python uses arrays to store collection of similar data,saving space and time.
python
empty_list = []
empty_list.append(1)
empty_list.append(2)
empty_list.append(3)
Now, empty_list contains the elements 1, 2, and 3.
Example;
Array concatenation
Two array can be combined by using the + operator.
Example;