class testing(): def __init__(self) -> None: self.test = "dsadas" self.g434test = "dsadasdgas" thing = testing() dicthing = {0:thing, 1:thing, 2:thing, 3:thing, 4:thing, 5:thing} listthing = [thing, thing, thing, thing, thing, thing] for t in listthing: print(t.test)