CHAPTER 8
Multidimensional Lists
Objectives
- To learn how a two-dimensional list can represent two-dimensional data (§8.1).
- To access elements in a two-dimensional list by using row and column indexes (§8.2).
- To program common operations for two-dimensional lists (displaying lists, summing all elements, finding min and max elements, random shuffling, and sorting) (§8.2).
- To pass two-dimensional lists to functions (§8.3).
- To write a program for grading multiple-choice questions by using two-dimensional lists (§8.4).
- To solve the closest-pair problem by using two-dimensional lists (§8.5).
- To check a Sudoku solution by using two-dimensional lists (§8.6).
- To use multidimensional lists (§8.7).
8.1 Introduction
Key Point
Data in a table ...
Get Introduction to Python Programming and Data Structures, 3rd Edition by Pearson now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.