We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae2a703 commit d3e2538Copy full SHA for d3e2538
bot/resources/tags/loop-remove.md
@@ -1,8 +1,9 @@
1
---
2
+aliases: ["loop-add", "loop-modify"]
3
embed:
4
title: "Removing items inside a for loop"
5
-Avoid removing items from a collection, such as a list, as you iterate that collection in a `for` loop:
6
+Avoid adding to or removing from a collection, such as a list, as you iterate that collection in a `for` loop:
7
```py
8
data = [1, 2, 3, 4]
9
for item in data:
0 commit comments