def createBox(box):
    """
    create a box filter from the input list "box"
    this filter should accept a list of length len(box) and return a simple
    convolution of it.
    the meaning of this box filter is as follows:
    for each element the input list l, multiple l[i] by box[i]
    sum the results of all of these multiplications
    return the sum
    So for a box of length 3, filter(l) should return:
      (box[0] * l[0] + box[1] * l[1] + box[2] * l[2])
    The function createBox returns the box filter itself, as well as the length
    of the filter (which can be passed as an argument to conv)
    :param box: list
    :return: function, int
    """
    # Fill in
    def boxFilter(l):
        # Fill in
        
        #sum of multiplications 
        Multi_sum = 0;
        #Creates the range for the list 
        Range = range(0,len(box));
    
        for A in Range:
            #Sums the elements after multiplying the desired lists
            Multi_sum = Multi_sum + box[A] * l[A];
            
        return (Multi_sum);
    
        pass
	
	

    return boxFilter, len(box);