def get_total(shopping_list, prices):
    """
    Getting shopping list and prices for goods in it,
     returns total cost of available products.

    >>> goods = {'Apple': 2.5, 'Pear': 1, 'Pumpkin': 1.5}
    >>> prices = {'Apple': 9.50, 'Pear': 23.80, 'Pumpkin': 4.50}
    >>> get_total(goods, prices)
    54.3

    If there's no price available for product, don't include it in total
    >>> goods = {'Apple': 2.5, 'Pear': 1, 'Pumpkin': 1.5}
    >>> prices = {'Apple': 9.50, 'Coconut': 20}
    >>> get_total(goods, prices)
    23.75
    >>> get_total(goods, {})
    0

    You may assume that units and names in shopping list and price list are
     unified. I.e. if you have kg in shopping list, price will be per kg

    Args:
        shopping_list: dict with {product_name : amount} pairs as key-value
            product_name is string
            amount is numeric
        prices: dictionary with {product_name : price} pairs as key-value
            product_name is string
            price is numeric

    Returns:
        Total cost as single number
    """
    goods = shopping_list
    prices = prices
    result = []
    goods = list(goods.items())


    for i in goods:
        if i[0] in prices:
            k = i[-1] * prices[i[0]]
            result.append((i[0], k))
    d = dict(result)
    return sum(d.values())