Quantcast
 

Arrays as Lists of Lists

OCW Scholar

« Previous | Next »

Python doesn't have a formal array data type (although there are some very nice libraries for numerical computation, such as numpy, that support arrays). But we can make two-dimensional arrays using lists of lists, which we'll explore in the next few problems.

The problems in the table below are taken from the 6.01 Python Tutor, an interactive environment that is not available on OCW. Do not try to answer these questions in the PDF files; answers will not be checked, and cannot be submitted.

 

« Previous | Next »