how do i make an array global

a a at tempinbox.com
Wed Jun 28 01:23:58 EDT 2006


def fn():
     for i in range(l)
           global count
           count[i]= ....

how do i declare count to be global if it is an array

subsequently i should access or define count as an array

error:
global name 'count' is not defined

thanks
-a




More information about the Python-list mailing list