edward = ['Edward Gumby', 42] john = ['John Smith', 50] database = [edward, john] print database
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 |