code: def add_component(self, component):
          '''
          Adds a Component to an Entity
          '''
          if component not in self._components:
              self._components.append(component)
          else:  # Replace Component
              self._components[self._components.index(component)] = componenf add_component(self, component):
          '''
          Adds a Component to an Entity
          '''
          if component not in self._components:
              self._components.append(component)
          else:  # Replace Component
              self._components[self._components.index(component)] = component
docs: Adds a Component to an Entity