def find_product(id, product_list):
    """
        This function is used to find the matching product when given a product ID and a dictionary of products.
        It makes use of list comprehension in order to find the right product and return.

        @param: this function has two variables: the first variable is a product ID code that is an integer;
                the second variable is the product_list which is a dictionary variable that contains all the products.

    """
    same_product = [p for p in product_list if str(p["id"]) == str(id)]
    product = same_product[0]
    return product