teach-ict.com logo

THE education site for computer science and ICT

2. Ordered Lists

When data items (also called elements or nodes) are related to one another, they can be organised as a list.

Each element in the list is stored in memory, one after the other.

list in memory

Ordered List

The collection of every English letter creates a list known as the English alphabet and of course there are 26 of them. The alphabet is an example of an ordered list, where every element is in its logical position according to some rule.

Ordered lists may be in ascending or descending order, time order etc.

 

In languages such as Python, ordered lists are very similar to arrays (discussed here). The key difference is that you cannot perform arithmetic operations on a list, but you can on an array.

 

Challenge see if you can find out one extra fact on this topic that we haven't already told you

Click on this link: What is a list in programming?