Python Datatype Example - List


The list is a set of ordered sequences. It is a data type, which is used to store different datatype. The item in the list are separated with a comma “,” and square brackets “[]

Program
a = [1, 4.022, "Hello Fresherbell", True] print(type(a)) print(a)
Input
Output