def getGroupItemPrices():
    itemPrices = getItemPrices()
    groupPrices = {}
    for combination in itertools.combinations_with_replacement('STXYZ', 3):
        regularCost = sum((itemPrices[item][1] for item in combination))
        saving = (regularCost - 45)
        groupPrices[''.join(combination)] = {1: 45, 0: saving}
    return groupPrices
def getGroupItemPrices():
    itemPrices = getItemPrices()
    groupPrices = {}
    for combination in itertools.combinations_with_replacement('STXYZ', 3):
        regularCost = sum((itemPrices[item][1] for item in combination))
        saving = (regularCost - 45)
        groupPrices[.join(combination)] = {1: 45, 0: saving}
    return groupPrices