human
Complete the below
def getattr(attr, default=None):

    ''''Get a named attribute from an object.
    When a default argument is given, it is returned when the attribute
    doesn\'t exist.'
    '''
assistant
#Here is the Python program you requested.
    def getter(value):
        return _getattr(value, attr, default)
    return transform(getter)