From 2ccac29892a47553460fdf54ce4edb043d22fae2 Mon Sep 17 00:00:00 2001 From: Patrick O'Shea Date: Tue, 14 Apr 2020 17:11:11 -0500 Subject: [PATCH 1/2] Typo fix (#141) --- Python/Module4_OOP/Methods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/Module4_OOP/Methods.md b/Python/Module4_OOP/Methods.md index 92d9723a..153c2425 100644 --- a/Python/Module4_OOP/Methods.md +++ b/Python/Module4_OOP/Methods.md @@ -200,7 +200,7 @@ __main__.Dummy `dict.fromkeys` is an example of a class method that takes in an iterable, and returns a dictionary whose keys are the elements of that iterable, and whose values all default to `None`. ```python ->>> dict.fromkeys("abcd") +>>> dict.fromkeys("abcd",2.3) {'a': 2.3, 'b': 2.3, 'c': 2.3, 'd': 2.3} ``` From 2dfd1b7093fa708826a6ae32e03ad5af923b6e32 Mon Sep 17 00:00:00 2001 From: Patrick O'Shea Date: Wed, 15 Apr 2020 12:25:50 -0500 Subject: [PATCH 2/2] Fixed dict.fromkeys typo in Module 4, pep-8 compliant --- Python/Module4_OOP/Methods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/Module4_OOP/Methods.md b/Python/Module4_OOP/Methods.md index 153c2425..6bf8e4fc 100644 --- a/Python/Module4_OOP/Methods.md +++ b/Python/Module4_OOP/Methods.md @@ -200,7 +200,7 @@ __main__.Dummy `dict.fromkeys` is an example of a class method that takes in an iterable, and returns a dictionary whose keys are the elements of that iterable, and whose values all default to `None`. ```python ->>> dict.fromkeys("abcd",2.3) +>>> dict.fromkeys("abcd", 2.3) {'a': 2.3, 'b': 2.3, 'c': 2.3, 'd': 2.3} ```