We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb340c0 commit af4fa40Copy full SHA for af4fa40
Python 3/01 Python 3 - Introduction.md
@@ -1422,11 +1422,11 @@ Ever wondered how this works? Python implements this using Iterables and Iterato
1422
1423
- ```python
1424
# Unlike lists, you can't do a for loop over this more than once
1425
- my_generator = (x * x for x in range(3))
1426
-
1427
- # Generators can only be iterated over ONCE. They do not store values in memory,
1428
- # but instead generate them on the fly
1429
- ```
+ my_generator = (x * x for x in range(3))
+
+ # Generators can only be iterated over ONCE.
+ # They do not store values in memory, but instead generate them on the fly
+ ```
1430
1431
- **Iterators** are objects that define how the iteration is done! (Specifically, what the next item to be iterated is.)
1432
0 commit comments