There's two different things I'm trying to figure out how to do with Python.
First, when I want my program to go through a function, which then moves on to another function..... so say I start with main(). I have variables A and B. I go on to function Do_This(), which doesnt use variables A and B at all. However, the function Do_This() calls for Do_This2(), which DOES need variables A and B. The only way I know how to still have variables A and B stored somewhere is by inputting them into Do_This() with Do_This(A, B) and then inputting them into Do_This2() with Do_This2(A, B). I find this very tedious because eventually, my functions get cluttered with all these required inputs that I need in order to import them to another part of the program. How can I store a variable so it can be accessed in any function without having to import them all over the place?
The other thing I need to figure out is how to create a loop that will produce array variables (you know, like X[1] type variables) for each iteration. So say the number of iterations in the loop is three. I would then want the loop to somehow do Array1 = ["."], Array2 = ["."], and Array3 = ["."]. And if the iterations are, say, 6, it produces up to Array6. And, if I do this, how am I going to reference all these arrays later on without even knowing how many there are ahead of time?
I just need to be pointed in the right direction. This stuff's hard to explain so feel free to ask for any clarification. Thankyou!!