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"]
Try it Yourself »

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



Copyright 1999-2023 by Refsnes Data. All Rights Reserved.