Oct-23-2019, 08:48 AM
(This post was last modified: Oct-23-2019, 08:48 AM by Gribouillis.)
Sandeep2000 Wrote:Can you see if there is something wrong with the code itself.Yes something is fundamentally wrong in this code: Don't remove items in a python list inside a loop that's iterating on this list. To avoid this, try
for item in list(plist)
, which iterates on a copy of the initial list.