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 149d361 commit decbe90Copy full SHA for decbe90
loops.md
@@ -288,6 +288,15 @@ If you're using Python 3.2 or older you need to use `stuff[:]` instead
288
of `stuff.copy()` and `stuff[:] = []` instead of `stuff.clear()`.
289
`stuff[:]` is a slice of the whole list, just like `stuff[0:]`.
290
291
+## Summary
292
+
293
+- A loop means repeating something multiple times.
294
+- While loops repeat something as long as a condition is true, and
295
+ they check the condition only in the beginning.
296
+- For loops can be used for repeating something to each item in a list.
297
+- The `break` keyword can be used to interrupt the innermost loop at
298
+ any time.
299
300
## Exercises
301
302
1. Back in "Using if, else and elif" we created a program that asked
0 commit comments