Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Notes/04_Classes_objects/01_Class.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ dictionaries. Then compute the total cost:
>>> sum([s.cost() for s in portfolio])
44671.15
>>>
----
```

### Exercise 4.4: Using your class

Expand Down
4 changes: 2 additions & 2 deletions Notes/06_Generators/03_Producers_consumers.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Consumer is a for-loop. It gets items and does something with them.
*producer* → **processing** → **processing** → *consumer*

```python
def processing(s:
def processing(s):
for item in s:
...
yield newitem
Expand All @@ -78,7 +78,7 @@ def producer():
yield item # yields the item that is received by the `processing`
...

def processing(s:
def processing(s):
for item in s: # Comes from the `producer`
...
yield newitem # yields a new item
Expand Down