♦ Python Lists
♣ About Python ListsA List is the collection of elements.
A List is changeable
A List is Ordered and has indexing
Duplicates are Allowed.
♣ Example1: List with same Data Type elements in PythonLet us see a Example of array holding square values of integer from 0 to 10.
Output: sq variable(array/list) holds ten values, i.e, squared values of integers from 1 to 10.
♣ Example2: List with different Data Type elements in PythonA List can hold elements of different Data Types as-well, meaning there can be a variety of Data-Types in a List.
Let us see a combination of three Data-Type mixture.
Output: mix variable(array/list) holds three type of Data-Type elements. More specifically they are int, string and bool.