def format_single_row(keys, line_data):
    'Create an xml string from the keys and line_data values.'
    row_values = ['    <{key}>{value}</{key}>\n'.format(key=key, value=value) for (key, value) in zip(keys, line_data)]
    return ''.join(row_values)
Create an xml string from the keys and line_data values.
def format_single_row(keys, line_data):
    
    row_values = ['    <{key}>{value}</{key}>\n'.format(key=key, value=value) for (key, value) in zip(keys, line_data)]
    return .join(row_values)