Hi guys, i'm new in python, why i can't call fuctions two time(in if and in else)? [closed]

class Get_Cost_Mixin:
    def get_name(self):
        if len(list(self.ingredients.split())) <= 1:
            call.get_cost()                <------
            call.get_price()               <------
            print(str(self.ingredients) + ' Smoothie')
        else:
            call.get_cost()                <------
            call.get_price()               <------
            print(str(self.ingredients) + ' Fusion')

Hi guys, i'm new in python, why i can't call fuctions two time(in if and in else)?

Back to Top