def get_cost(prices, item, quantity):
    """
    Calculates cost of item based on quantity
    Args:
        prices (dict): {item_code: price}
        item (str): item_code
        quantity (int): quantity of item in basket
    """
    return quantity * prices[item]