def execute(self, ability_name): for a in self.abilities: if a.name == ability_name: return a.use() return "Ability not found"
Here are a few possibilities for what you might have intended: nen bot dmo