How to create variable names with a “for” loop? [duplicate]
问题 This question already has answers here : How can you dynamically create variables via a while loop? [duplicate] (8 answers) Closed 2 years ago . I know my title may be somewhat confusing, but I had trouble describing my issue. Basically, I need to create a bunch of variables that all equal 0 , and I want to do this with a for loop so I don't have to hard code it. The problem is each variable needs to have a different name and when I call the number from my for loop to create the variable, it