Saving values in pythonscript

Hi Community,

at first I am counting up every 1 ms and this value is sent to my pythonscript.
I expected that the below script could store values in the array a. However it seems like that the array gets initialized over and over again.

print a

Is there any way around?

It’s not happening to me.
What is your rhino version?
Grasshopper version?

Please attach your definition.

gr rh