Erik Max Francis wrote: > a wrote: > >> def fn(): >> for i in range(l) >> global count >> count[i]= .... >> >> how do i declare count to be global if it is an array > > count = [...] > > def fn(): > global count > for i in range(l): > count[i] = ... >
No need for "global" here. Georg -- http://mail.python.org/mailman/listinfo/python-list