Global array in python

Chris Rebert clp2 at
Tue Sep 29 03:04:37 CEST 2009

On Mon, Sep 28, 2009 at 5:48 PM, Rudolf <yellowblueyellow at> wrote:
> How can i declare a global array in python?

Python has no concept of declarations.
And it doesn't have arrays, it has dynamically-resizing lists.

Some examples:

one_empty_list = []
a_list_of 5 zeroes = [0]*5

Might I recommend you read the Python tutorial? I will help you in
your programming class.


More information about the Python-list mailing list