from functools import reduce


def myadd(mynumbers:list)->int:
    """
    This function adds only even numbers to list

    # Input:
        mynumbers: list, This is a list of numbers provided by theuser
    
    # Returns:
        int: It returns the calculated sum of the integers
    
    # Functionality:
        This function takes in list, filters out all the even number using filter and lambda 
        and then passes that list to reduce function to add all the elements of it, then the result
        is returned back.

    """
    result = reduce(lambda x,y: x + y ,filter(lambda x: (x % 2 == 0), mynumbers))
    return result