From 34c9f084cdb387773d8437a52fe38592a1f533d2 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 12 Apr 2020 19:58:17 +0200 Subject: [PATCH 1/4] Rename math/add.py to maths/add.py --- {math => maths}/add.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {math => maths}/add.py (100%) diff --git a/math/add.py b/maths/add.py similarity index 100% rename from math/add.py rename to maths/add.py From 8a79e9933ae5037d5ca527fc08e56ee14b8f14ab Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Sun, 12 Apr 2020 17:58:52 +0000 Subject: [PATCH 2/4] fixup! Format Python code with psf/black push --- maths/add.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maths/add.py b/maths/add.py index 3b8b404658c0..ff99d5a30064 100644 --- a/maths/add.py +++ b/maths/add.py @@ -1,6 +1,8 @@ """ Just to check """ + + def add(a, b): """ >>> add(2, 2) From c0c8fb554c2fc22fd7807bbfacf9a2a1a4e96b5b Mon Sep 17 00:00:00 2001 From: John Law Date: Mon, 13 Apr 2020 02:13:10 +0200 Subject: [PATCH 3/4] Fix sum to add --- maths/add.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maths/add.py b/maths/add.py index ff99d5a30064..0bc7da9697d3 100644 --- a/maths/add.py +++ b/maths/add.py @@ -16,4 +16,4 @@ def add(a, b): if __name__ == "__main__": a = 5 b = 6 - print(f"The sum of {a} + {b} is {sum(a, b)}") + print(f"The sum of {a} + {b} is {add(a, b)}") From 2aff3496ee3b9b7e06a4db62013f183fe5e375c6 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Mon, 13 Apr 2020 00:13:34 +0000 Subject: [PATCH 4/4] updating DIRECTORY.md --- DIRECTORY.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DIRECTORY.md b/DIRECTORY.md index 484c5e8fc153..0f7363d7e9ab 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -107,6 +107,7 @@ * [Doubly Linked List](https://github.com/TheAlgorithms/Python/blob/master/data_structures/linked_list/doubly_linked_list.py) * [From Sequence](https://github.com/TheAlgorithms/Python/blob/master/data_structures/linked_list/from_sequence.py) * [Is Palindrome](https://github.com/TheAlgorithms/Python/blob/master/data_structures/linked_list/is_palindrome.py) + * [Middle Element Of Linked List](https://github.com/TheAlgorithms/Python/blob/master/data_structures/linked_list/middle_element_of_linked_list.py) * [Print Reverse](https://github.com/TheAlgorithms/Python/blob/master/data_structures/linked_list/print_reverse.py) * [Singly Linked List](https://github.com/TheAlgorithms/Python/blob/master/data_structures/linked_list/singly_linked_list.py) * [Skip List](https://github.com/TheAlgorithms/Python/blob/master/data_structures/linked_list/skip_list.py) @@ -271,6 +272,7 @@ * [Abs](https://github.com/TheAlgorithms/Python/blob/master/maths/abs.py) * [Abs Max](https://github.com/TheAlgorithms/Python/blob/master/maths/abs_max.py) * [Abs Min](https://github.com/TheAlgorithms/Python/blob/master/maths/abs_min.py) + * [Add](https://github.com/TheAlgorithms/Python/blob/master/maths/add.py) * [Allocation Number](https://github.com/TheAlgorithms/Python/blob/master/maths/allocation_number.py) * [Area Under Curve](https://github.com/TheAlgorithms/Python/blob/master/maths/area_under_curve.py) * [Armstrong Numbers](https://github.com/TheAlgorithms/Python/blob/master/maths/armstrong_numbers.py)