List Order of Initialization

SamFeltus samfeltus at gmail.com
Fri Oct 10 10:58:53 EDT 2008


When a list initializes, will it always evaluate in order starting at
element 0 and finishing with the last element?

def f1(x):
    return x + 2

def f2(x):
    return x * 2

def f3(x):
    return x * 3

the_list = [f1(7), f2(8), f3(4)]



More information about the Python-list mailing list