Hi, all

I want to make the function use while statement,and  without a deepcopy 

this is my use deepcopy  function correct codes, So, how can i to do a 
different way  and use while statement:

def foo(x):
    if not isinstance(x, list):
        return x
    return [foo(y) for y in x]


Reply via email to