(parent, tag, attrib={}, **extra)
return element
Subelement factory which creates an element instance, and appends it
    to an existing parent.

    The element tag, attribute names, and attribute values can be either
    bytes or Unicode strings.

    *parent* is the parent element, *tag* is the subelements name, *attrib* is
    an optional directory containing element attributes, *extra* are
    additional attributes given as keyword arguments.
Subelement factory which creates an element instance, and appends it
    to an existing parent.
Subelement factory which creates an element instance and appends it to an existing parent .
def SubElement(parent, tag, attrib={}, **extra):
    """Subelement factory which creates an element instance, and appends it
    to an existing parent.

    The element tag, attribute names, and attribute values can be either
    bytes or Unicode strings.

    *parent* is the parent element, *tag* is the subelements name, *attrib* is
    an optional directory containing element attributes, *extra* are
    additional attributes given as keyword arguments.

    """
    attrib = {**attrib, **extra}
    element = parent.makeelement(tag, attrib)
    parent.append(element)
    return element
def SubElement ( parent , tag , attrib = { } , * * extra ) : attrib = { * * attrib , * * extra } element = parent . makeelement ( tag , attrib ) parent . append ( element ) return element