1.4 Arrays

In this section, we introduce you to the idea of a data structure and to your first data structure, the array. The primary purpose of an array is to facilitate storing and manipulating large quantities of data. Arrays play an essential role in many data processing tasks. They also correspond to vectors and matrices, which are widely used in science and in scientific programming. We will consider basic properties of array processing in Python, with many examples illustrating why arrays are useful.

A data structure is a way to organize data that we wish to process with a computer ...

Get Introduction to Programming in Python: An Interdisciplinary Approach now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.