Skip to content

Commit 573fc48

Browse files
authored
Add simple addition algorithm
1 parent 678dedb commit 573fc48

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

maths/maths/simple_addition.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
Simple addition function.
3+
"""
4+
5+
6+
def add_numbers(a: int, b: int) -> int:
7+
"""
8+
Returns the sum of two integers.
9+
10+
>>> add_numbers(2, 3)
11+
5
12+
"""
13+
return a + b
14+
15+
16+
if __name__ == "__main__":
17+
print(add_numbers(5, 7))

0 commit comments

Comments
 (0)