encapsulation/wild_cat_zoo_exe/zoo.py
def tend_animals(self):
        '''
        -	If you have enough budget to tend the animals reduce the budget and return "You tended all the animals.
            They are happy. Budget left: {left_budget}"
        -	Otherwise return "You have no budget to tend the animals. They are unhappy."
        '''
        sum_needs = 0
        for animal in self.animals:
            sum_needs += animal.get_needs()
        if not self.is_enough_budget(sum_needs):
            return "You have no budget to tend the animals. They are unhappy."
        self.__budget -= sum_needs
        return f"You tended all the animals. They are happy. Budget left: {self.__budget}"

        -	If you have enough budget to tend the animals reduce the budget and return "You tended all the animals.
            They are happy. Budget left: {left_budget}"
        -	Otherwise return "You have no budget to tend the animals. They are unhappy."
        
If you have enough budget to tend the animals reduce the budget and return "You tended all the animals.
They are happy. Budget left: {left_budget}"
Otherwise return "You have no budget to tend the animals. They are unhappy."
If you have enough budget to tend the animals reduce the budget and return " You tended all the animals . They are happy . Budget left : { left_budget } " Otherwise return " You have no budget to tend the animals . They are unhappy . "
def tend_animals(self):
        sum_needs = 0
        for animal in self.animals:
            sum_needs += animal.get_needs()
        if not self.is_enough_budget(sum_needs):
            return "You have no budget to tend the animals. They are unhappy."
        self.__budget -= sum_needs
        return f"You tended all the animals. They are happy. Budget left: {self.__budget}"
def tend_animals ( self ) : sum_needs = 0 for animal in self . animals : sum_needs += animal . get_needs ( ) if not self . is_enough_budget ( sum_needs ) : return "You have no budget to tend the animals. They are unhappy." self . __budget -= sum_needs return f"You tended all the animals. They are happy. Budget left: {self.__budget}"
If you have enough budget to tend the animals reduce the budget and return "You tended all the animals.
If you have enough budget to tend the animals reduce the budget and return " You tended all the animals .
'''
        -	If you have enough budget to tend the animals reduce the budget and return "You tended all the animals.
            They are happy. Budget left: {left_budget}"
        -	Otherwise return "You have no budget to tend the animals. They are unhappy."
        '''
self