Apr-24-2017, 06:47 PM
Iterate over the copy of the list while modifying the original.
for element in list_[:]: # modify list_
Error in loops, new to Python
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
New to python! Loops | Seeley307 | 3 | 77,489 |
May-15-2020, 02:27 PM Last Post: ibreeden |
|
Python for loops giving error | Petrus | 12 | 5,778 |
Jan-09-2019, 08:02 AM Last Post: Petrus |