List

Learn about a list's data structure.

What is a list?

Lists and arrays are similar in that they both hold items. Lists can easily search, sort, add, and remove items because of built-in functionalities. Lists can constantly be changed to include or disclude additional items, unlike an array that has a set number of items.

To use a list, add the following line of code.

 ...