Hello,all I'm first time, I want to make a while statement which can function the same x.pop () and without the use of popăhow can i to do? i want to change this is code: def foo(x): y = [] while x !=[]: y.append(x.pop()) return y