def join(ol,separator="<STR_LIT:U+002C>"):
if(ol.__len__() == <NUM_LIT:0>):<EOL><INDENT>return("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT>cond = (type(ol[<NUM_LIT:0>])==type(b'<STR_LIT>'))<EOL>if(cond):<EOL><INDENT>rslt = b'<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>rslt ="<STR_LIT>"<EOL><DEDENT>length = ol.__len__()<EOL>for i in range(<NUM_LIT:0>,length-<NUM_LIT:1>):<EOL><INDENT>ele = ol[i]<EOL>if(cond):<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>ele = str(ele)<EOL><DEDENT>rslt = rslt + ele + separator<EOL><DEDENT>if(cond):<EOL><INDENT>rslt = rslt + ol[length - <NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>rslt = rslt + str(ol[length - <NUM_LIT:1>])<EOL><DEDENT>return(rslt)<EOL>
from elist.elist import *
ol = [1,2,3,4]
join(ol,separator="-")