♦ Python Arrays
♣ About Python Arrays
Arrays are contiguous storage of variables of a particular type or different types.In Python, there are various types of arrays.
♣ Types of Arrays in Python
Till date there are majorly 4 types of in-built Python Arrays.Below is a tabular explanation of Array Types
Type | Description |
---|---|
List | It is the collection of elements It is changeable It is Ordered, and has indexing Duplicates are Allowed |
Tuple | It is the collection of elements It is Not-Changeable It is Ordered, and has indexing Duplicates are Allowed |
Set | It is the collection of elements It is Changeable It is Un-ordered, and Does-not have indexing Duplicates are Not-allowed |
Dictionary | It is the collection of elements It is Changeable It is Ordered, that is it Does-not have indexing Duplicates are Not-allowed |