Code it ALL
Python Lists - CodeGK
♦ Python Lists

♣ About Python Lists

A 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 Python

Let 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 Python

A 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.