On 6/12/14 11:57 AM, Chris Angelico wrote:
On Fri, Jun 13, 2014 at 2:49 AM, Mark H Harris <harrismh...@gmail.com> wrote:
Consider this generator variation:

def poplist(L):
         done = False
         while done==False:

                 yield L[::-1][:1:]
                 L = L[::-1][1::][::-1]
                 if len(L)==0: done=True

Why not just "while L"? Or are you deliberately trying to ensure that
cheating will be detectable?

;-)




--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to