I need to name a variable via another variable for a small game. I have made a class for all bullets and a seperate one for enemies.
class bruh(object):
def __init__(self,x):
print(x)
for x in range(1,11):
x = bruh(x)
What I want the code to do is to create 10 variables each labbeled 1-10 which each are the bruh() object so they print x when created. Not sure if i'm stupid or not but is there any way to achieve this or something similar?