Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 10bd222 + e63ad55 commit 178efb4Copy full SHA for 178efb4
Notes/04_Classes_objects/01_Class.md
@@ -262,7 +262,7 @@ dictionaries. Then compute the total cost:
262
>>> sum([s.cost() for s in portfolio])
263
44671.15
264
>>>
265
-----
+```
266
267
### Exercise 4.4: Using your class
268
Notes/06_Generators/03_Producers_consumers.md
@@ -59,7 +59,7 @@ Consumer is a for-loop. It gets items and does something with them.
59
*producer* → **processing** → **processing** → *consumer*
60
61
```python
62
-def processing(s:
+def processing(s):
63
for item in s:
64
...
65
yield newitem
@@ -78,7 +78,7 @@ def producer():
78
yield item # yields the item that is received by the `processing`
79
80
81
82
for item in s: # Comes from the `producer`
83
84
yield newitem # yields a new item
0 commit comments