Skip to content

Commit e21c6c5

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

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Python 3/01 Python 3 - Introduction.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -1422,12 +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-
```
1430-
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, but instead generate them on the fly
1428+
```
1429+
14311430
- **Iterators** are objects that define how the iteration is done! (Specifically, what the next item to be iterated is.)
14321431
14331432
- Think of them as text 'cursors' that point to objects in an iterable

0 commit comments

Comments
 (0)