hello list
I asked yesterday how we can "declare" an array in python. Thanks Brian
van den Broek and Frank Schley for your responses.
A[None] * n works for me.
To answer Brian's question, I was writing the standard backtracking
procedure to find the permutations of 1..n taken r at a time.
def
Logesh Pillay said unto the world upon 10/01/06 11:28 PM:
> Hello list
>
> I want to declare a list of a specific size as global to some nested
> function like so
Hi Logesh,
what problem are you trying to solve by doing this? Knowing that will
help generate more useful answers, I suspect.
Hello list
I want to declare a list of a specific size as global to some nested
function like so
def foo (n):
A[] (of size n)
def foo1
...
The only way I can think to declare the list is to use dummy values:
A = [0] * n
A = [] * n doesn't work. [] * n =