SamFeltus <[EMAIL PROTECTED]> writes:
> 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(
Diez B. Roggisch wrote:
SamFeltus schrieb:
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)]
Yes.
From t
SamFeltus schrieb:
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)]
Yes.
Diez
--
http://mail.python.org/m
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)]
--
http://mail.python.org/mailman/listinfo/python-list