I am sure that this is a very simple problem to solve, but I have been baffled by it. I want to create instances of a class using a while loop, because I want the number of objects to depend on a different input number every time. I want each instance to have a different name, and it would be simplest if the name was "variable" plus the number it is in the while cycle. (For example, if it was the 3rd instance, variable3) The problem is that I don't know how to create a different name for the instance using the number of the while cycle.
Thanks!
1