We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6610a87 commit 8fdcc8aCopy full SHA for 8fdcc8a
1 file changed
loops.md
@@ -273,6 +273,10 @@ Or if we just want to clear a list, we can use the `clear`
273
>>>
274
```
275
276
+If you're using Python 3.2 or older you need to use `stuff[:]` instead
277
+of `stuff.copy()` and `stuff[:] = []` instead of `stuff.clear()`.
278
+`stuff[:]` is a slice of the whole list, just like `stuff[0:]`.
279
+
280
## Exercises
281
282
1. Back in "Using if, else and elif" we created a program that asked
0 commit comments