i have nth list of multiple element as shown below in func_name this is not a duplicate question because i found lot of answer where everylist is equal to some list name or list1, list2.... if you think it's a duplicate then please share the link with same question or tell me answer how i can write the output of func_name in a single list seperated with comma............
My inputs are shown below which are the outputs from func_name
xpcinitapi
xpcgetapiversion
xpcfreeapi
xpcregistertarget
xpcderegistertarget
xpcopenconnection
xpccloseconnection
xpcopentcpipport
xpccloseport
xpcreopenport
xpcreboot
xpctargetpingapi
xpcgettargetversion
xpcloadapp
xpcunloadapp
xpcisapprunning
xpcsetecho
xpcgetecho
xpcsetloadtimeout
xpcgetloadtimeout
xpcgetappname
xpcstartapp
xpcstopapp
xpcsetsampletime
xpcgetsampletime
xpcsetstoptime
xpcgetstoptime
xpcaveragetet
xpcgetexectime
xpcgetsessiontime
xpcisapprunning
xpcisoverloaded
xpcmaximumtet
xpcminimumtet
xpcsaveparamset
xpcloadparamset
xpcerrormsg
xpcgetlasterror
xpcsetlasterror
xpcsetlasterror
xpcaddscope
xpcsetscope
xpcremscope
xpcgetnumscopes
xpcgetscope
xpcgetscopelist
xpcgetscopes
xpcscaddsignal
xpcscremsignal
xpcscgetnumsignals
i want to combine all these list element or inputs in a single list seperated by comma
i tried to use append but i'm getting same list and i want to combine all element in a signle list
def duplicate(func_name):
aa = (func_name.splitlines(1))
words = []
for i in aa:
words.append(i)
return (words)
can any one please tell me how can i combine them like a single list to get the following output
output = ['xpcinitapi', 'xpcgetapiversion','xpcfreeapi' and so on....]
thank you