Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 178efb4

Browse files
authored
Merge pull request dabeaz-course#4 from MFSJMenger/master
fixed minor typos
2 parents 10bd222 + e63ad55 commit 178efb4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Notes/04_Classes_objects/01_Class.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ dictionaries. Then compute the total cost:
262262
>>> sum([s.cost() for s in portfolio])
263263
44671.15
264264
>>>
265-
----
265+
```
266266

267267
### Exercise 4.4: Using your class
268268

Notes/06_Generators/03_Producers_consumers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Consumer is a for-loop. It gets items and does something with them.
5959
*producer* → **processing** → **processing** → *consumer*
6060

6161
```python
62-
def processing(s:
62+
def processing(s):
6363
for item in s:
6464
...
6565
yield newitem
@@ -78,7 +78,7 @@ def producer():
7878
yield item # yields the item that is received by the `processing`
7979
...
8080

81-
def processing(s:
81+
def processing(s):
8282
for item in s: # Comes from the `producer`
8383
...
8484
yield newitem # yields a new item

0 commit comments

Comments
 (0)