Strategy_Method/discount_strategies.py
def list_strategies(self):
        '''
        Returns all the available strategies in a list as strings.
        '''
        #the objects for the discount strategies can only be accessed with self.
        self.strategies = {
            'ChristmasStrategy' : discounts.ChristmasDiscount,
            'ThanksgivingStrategy' : discounts.ThanksgivingDiscount,
            'NormalStrategy' : discounts.NormalDiscount
        }

        return self.strategies.keys()

        Returns all the available strategies in a list as strings.
        
Returns all the available strategies in a list as strings.
Returns all the available strategies in a list as strings .
def list_strategies(self):
        self.strategies = {
            'ChristmasStrategy' : discounts.ChristmasDiscount,
            'ThanksgivingStrategy' : discounts.ThanksgivingDiscount,
            'NormalStrategy' : discounts.NormalDiscount
        }
        return self.strategies.keys()
def list_strategies ( self ) : self . strategies = { 'ChristmasStrategy' : discounts . ChristmasDiscount , 'ThanksgivingStrategy' : discounts . ThanksgivingDiscount , 'NormalStrategy' : discounts . NormalDiscount } return self . strategies . keys ( )
Returns all the available strategies in a list as strings.
Returns all the available strategies in a list as strings .
'''
        Returns all the available strategies in a list as strings.
        ''' #the objects for the discount strategies can only be accessed with self.
self