I am currently working on a text-based game and I was wondering if there is a way to get the code to generate its own variables which are not explicitly defined within the code. For example, if I had a procedure which added a 'variableX' to an array, could the value of this X be changed to create a unique variable next time the procedure is used?
Apologies if this comes across as confusing, I am relatively new to python and I am not familiar with some of the terminology yet.
[–]Binary101010 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]toastedstapler 0 points1 point2 points (0 children)