For example, I need to run the script 1000 times, i.e. it takes one variable, does something with it, takes a second variable, and so on.
How to make everything happen like this: He takes one variable, does something with it, gives the result of working with the first variable, takes the second variable, does something with it, gives the result of working with the second variable, etc. Moreover, after performing the work with the second and subsequent variables, the data on the early variables would not be erased.
?