I need to make a list that tracks the objects that have been called of a certain class. These objects need to be accessible and display information when called from the list.
pizza2 = DeluxePizza("small",1,1,1,1,1)
pizza2.__str__()
pizza3 = DeluxePizza("medium",1,2,3,0,2)
pizza3.__str__()
pizza4 = DeluxePizza("large",1,0,1,0,5)
pizza4.__str__()
Whenever a new object is called, they need to be stored in the list like this-
pizzas = [pizza2, pizza3, pizza4]