1class MyClass:
2 def __init__(self, signature):
3 self.signature = signature
4
5 def __repr__(self) -> str:
6 return str(self.signature)
7
8class_list = []
9
10for i in range(10):
11
12 class_list.append(MyClass(i))
13
14print (class_list) # outputs [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]