December 2023
Intermediate to advanced
504 pages
11h 43m
English
The array is one of the most basic data structures in computer science. (In Python, the built-in array-like data structure is called a list, but I’ll refer to them as arrays, keeping in line with the more general computer science term.) I assume you’ve worked with arrays before, so you’re aware that an array is a list of data elements. The array is versatile and can serve as a useful tool in many situations, but let’s take a look at one quick example.
If you’re looking at the source code for an application that allows users to create and use shopping lists for the grocery store, you might find code like this:
| | array = ["apples", "bananas", "cucumbers", "dates", "elderberries"] |
This array happens to ...
Read now
Unlock full access