Python Access Arrays

Arrays

Arrays are used to store multiple values in one single variable:

Example

Create an array containing car names:

cars = ["Ford", "Volvo", "BMW"]

Note: Python does not have built-in support for Arrays, but Python Lists can be used instead.