How to declare and add items to an array in Python

I'm trying to add items to an array in Python.

I run

array = {}

Then, I try to add something to this array by doing:

array.append(valueToBeInserted)

There doesn't seem to be an .append method for this. How do I add items to an array?

← Назад к списку