im looking for a way to make variables using a for loop, since the only other way would be way to repetitive. I saw some similar stuff online which looks kinda like this:
for i in range(10):
globals()[f"my_variable_{i}"] = i
The problem with this is i get a LocalUnboundError, saying the variable referenced before assignment, but the weird thing i found while making some tests is that it doesnt work in that specific area of code, if i use it somewhere else, it works fine.