Items of a list are separated by commas and enclosed in square brackets : Introduction « List « Python Tutorial






edward = ['Joe', 42] 
print edward








7.1.Introduction
7.1.1.Defining a List
7.1.2.Creation of both homogeneous and heterogeneous lists.
7.1.3.Items of a list are separated by commas and enclosed in square brackets
7.1.4.Nested list
7.1.5.multidimensional arrays