File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ dictionaries. Then compute the total cost:
262
262
>> > sum ([s.cost() for s in portfolio])
263
263
44671.15
264
264
>> >
265
- ----
265
+ ```
266
266
267
267
### Exercise 4.4: Using your class
268
268
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ Consumer is a for-loop. It gets items and does something with them.
59
59
* producer* &rarr ; ** processing** &rarr ; ** processing** &rarr ; * consumer*
60
60
61
61
``` python
62
- def processing (s :
62
+ def processing (s ) :
63
63
for item in s:
64
64
...
65
65
yield newitem
@@ -78,7 +78,7 @@ def producer():
78
78
yield item # yields the item that is received by the `processing`
79
79
...
80
80
81
- def processing(s:
81
+ def processing (s ) :
82
82
for item in s: # Comes from the `producer`
83
83
...
84
84
yield newitem # yields a new item
You can’t perform that action at this time.
0 commit comments