hito koto <hitokoto2...@gmail.com> Wrote in message: > 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?
No idea what the question means. Are you just trying to rewrite the loop in a python implementation where pop is broken? > > i want to change this is code: > > def foo(x): > y = [] > while x !=[]: > y.append(x.pop()) > return y Perhaps you're looking for the extend method. -- DaveA -- https://mail.python.org/mailman/listinfo/python-list