mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
parent
3dbafd3f0d
commit
fbbbd5db05
19
maths/add.py
19
maths/add.py
|
@ -1,19 +0,0 @@
|
|||
"""
|
||||
Just to check
|
||||
"""
|
||||
|
||||
|
||||
def add(a: float, b: float) -> float:
|
||||
"""
|
||||
>>> add(2, 2)
|
||||
4
|
||||
>>> add(2, -2)
|
||||
0
|
||||
"""
|
||||
return a + b
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
a = 5
|
||||
b = 6
|
||||
print(f"The sum of {a} + {b} is {add(a, b)}")
|
Loading…
Reference in New Issue
Block a user