From e63ad550435ae3ea266dd057438588826a043f51 Mon Sep 17 00:00:00 2001 From: Maximilian Menger Date: Fri, 29 May 2020 17:28:11 +0200 Subject: [PATCH] fixed minor typos --- Notes/04_Classes_objects/01_Class.md | 2 +- Notes/06_Generators/03_Producers_consumers.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Notes/04_Classes_objects/01_Class.md b/Notes/04_Classes_objects/01_Class.md index c4d68dc..d8ce5cf 100644 --- a/Notes/04_Classes_objects/01_Class.md +++ b/Notes/04_Classes_objects/01_Class.md @@ -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 diff --git a/Notes/06_Generators/03_Producers_consumers.md b/Notes/06_Generators/03_Producers_consumers.md index 2849862..ffd7845 100644 --- a/Notes/06_Generators/03_Producers_consumers.md +++ b/Notes/06_Generators/03_Producers_consumers.md @@ -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 @@ -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