Two-Dimensional Lists

Two-Dimensional Lists

• Two-dimensional list: a list that contains other lists as its elements
    • Also known as nested list
    • Common to think of two-dimensional lists as having rows and columns
    • Useful for working with multiple sets of data
• To process data in a two-dimensional list need to use two indexes
• Typically use nested loops to process