def compute_products(of_adjacent_digits, in_number):
    """Compute the products of all N-sized groups of adjacent digits in a predefined number."""

    # Convert said number to a string.
    numberToString = str(in_number)

    # Register the list of digit group products.
    products = []

    # Build said groups.
    for i in range(len(numberToString) - of_adjacent_digits + 1):

        digit_group = numberToString[i:of_adjacent_digits + i]

        # Register the digit product of the current group.
        product = 1

        for ii in digit_group:

            product = product * int(ii)

        products.append(product)
    
    return products