Re: [Tutor] declaring list in python

2006-01-10 Thread Brian van den Broek
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.

[Tutor] declaring list in python

2006-01-10 Thread Logesh Pillay
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 =