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:
262262>> > sum ([s.cost() for s in portfolio])
26326344671.15
264264>> >
265- ----
265+ ```
266266
267267### Exercise 4.4: Using your class
268268
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.
5959* producer* &rarr ; ** processing** &rarr ; ** processing** &rarr ; * 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
You can’t perform that action at this time.
0 commit comments