def cdr(ol,**kwargs):
if('<STR_LIT>' in kwargs):<EOL><INDENT>mode = kwargs['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>mode = "<STR_LIT>"<EOL><DEDENT>if(mode == "<STR_LIT>"):<EOL><INDENT>cpol = copy.deepcopy(ol)<EOL>return(cpol[<NUM_LIT:1>:])<EOL><DEDENT>else:<EOL><INDENT>ol.pop(<NUM_LIT:0>)<EOL>return(ol)<EOL><DEDENT>
from elist.elist import *
ol=[1,2,3,4]
id(ol)
new = cdr(ol)
new
id(new)
####
ol=[1,2,3,4]
id(ol)
rslt = cdr(ol,mode="original")
rslt
id(rslt)