>>> from perfumes import buy2 >>> d = {'EAU_TOILETTE': [['Rochis1',78], ['Rochis2',42]], ... 'EAU_PARFUM': [['Challenge',82]], 'EAU_COLOGNE': [['Gege',43]]} >>> buy2(d, 50) ['Gege', 'Rochis2'] >>> buy2(d,25) []