Almost every tutorial and SO answer on this topic insists that you should never modify a list while iterating over it, but I can\'t see why this is such a bad thing if the c
You code doesn't iterate over the list.
for i in mylist: print mylist.pop()