>>> from discounts import discounts >>> lp1 = [['shirt', 'scarf'], ['scarf', 'coat'], ['coat', 'shirt'], ... ['shirt', 'blouse'], ['skirt', 'coat'], ['scarf', 'skirt']] >>> dprice1 = {'shirt': 45, 'blouse': 45, 'skirt': 55, 'scarf': 25, 'coat': 90} >>> doutput1 = discounts(lp1, dprice1) >>> if doutput1 != {'scarf': [3, 75], 'shirt': [2, 90], 'skirt': [1, 55]}: ... print(doutput1) >>> lp2 = [['scarf', 'shirt'], ['coat', 'scarf'], ['shirt', 'coat'], ... ['jacket', 'shawl'], ['shawl', 'skirt'], ['skirt', 'shoes'], ... ['hat', 'coat'], ['gloves', 'jacket'], ['shoes', 'shawl'], ... ['scarf', 'shawl'], ['anorak', 'shoes'], ['anorak', 'scarf'], ... ['blouse', 'shirt'], ['skirt', 'coat'], ['skirt', 'scarf']] >>> dprice2 = {'shirt': 45, 'blouse': 45, 'skirt': 55, 'trousers': 60, ... 'scarf': 25, 'anorak': 65, 'coat': 90, 'shoes': 70, 'gloves': 30, ... 'hat': 32, 'shawl': 28, 'jacket': 48} >>> doutput2 = discounts(lp2, dprice2) >>> if doutput2 != {'scarf': [5, 125], 'shirt': [1, 45], 'shawl': [3, 84], ... 'skirt': [2, 110], 'hat': [1, 32], 'gloves': [1, 30], ... 'anorak': [1, 65], 'blouse': [1, 45]}: ... print(doutput2) >>> lp3 = [['floor pump', 'bell'], ['hand pump', 'bell'], ['lock', 'lights'], ['bottle', 'lights'], ['bike shoe', 'lights'], ['lights', 'lock'], ['bag', 'lock'], ['wall hook', 'lock'], ['bell', 'vest'], ['hand pump', 'vest'], ['lock', 'bag'], ['bottle', 'bag'], ['bike shoe', 'bag'], ['lights', 'bottle'], ['wall hook', 'bottle'], ['bell', 'floor pump'], ['vest', 'floor pump'], ['hand pump', 'floor pump'], ['lock', 'wall hook'], ['bottle', 'wall hook'], ['bike shoe', 'wall hook'], ['lights', 'bike shoe'], ['bag', 'bike shoe'], ['wall hook', 'bike shoe'], ['bell', 'hand pump'], ['vest', 'hand pump']] >>> dprice3 = {'bell': 7, 'lights': 10, 'lock': 40, 'vest': 150, 'bag': 45, ... 'bottle': 7, 'floor pump': 45, 'wall hook': 36, 'bike shoe': 96, ... 'hand pump': 30} >>> doutput3 = discounts(lp3, dprice3) >>> if doutput3 != {'bell': [5, 35], 'lights': [4, 40], 'bottle': [5, 35], ... 'lock': [2, 80], 'wall hook': [4, 144], 'hand pump': [3, 90], ... 'bag': [2, 90], 'floor pump': [1, 45]}: ... print(doutput3)