all_potions = {}


class potions:

    def __init__(self, name, attribute, harmstat, cost):
        self.name = name
self.attribute = attribute
self.harmstat = harmstat
self.cost = cost
all_potions[self.name] = self
Printing Attributes of Objects in a Class in Python