Skip to content

Commit af4fa40

Browse files
committed
Fix Python Introduction formatting
1 parent bb340c0 commit af4fa40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Python 3/01 Python 3 - Introduction.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1422,11 +1422,11 @@ Ever wondered how this works? Python implements this using Iterables and Iterato
14221422
14231423
- ```python
14241424
# 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-
```
1425+
my_generator = (x * x for x in range(3))
1426+
1427+
# Generators can only be iterated over ONCE.
1428+
# They do not store values in memory, but instead generate them on the fly
1429+
```
14301430
14311431
- **Iterators** are objects that define how the iteration is done! (Specifically, what the next item to be iterated is.)
14321432

0 commit comments

Comments
 (0)