This short snippet shows how to define an array in Python.
Source code viewer
# Define an array. cars = ['mitsubishi', 'toyota', 'jeep'] # Define a "keyed array" or in Python they are called "Dictionaries". cars = {'carisma': 'mitsubishi', 'prius': 'toyota'}Programming Language: Python