Great point, Jacqueline! Another thing I’ve noticed in my experience is the importance of using factory functions or lambda expressions to make this more dynamic. For instance, you can do something like this:
objects = [(lambda: MyClass())() for _ in range(5)]
This guarantees each instance is separately created even if your class constructor involves some shared default states. Always a good idea to test these setups for unexpected behaviors!