def get_formatted_name(first, last, mid = ''):
    """generate a neatly formatted full name"""
    if mid:
        fullname = first + ' ' + mid + ' ' + last
    else:
        fullname = first + ' ' + last

    return fullname.title()