Python/maths/add.py
2022-10-13 11:45:20 +02:00

20 lines
243 B
Python

"""
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)}")